56 lines
986 B
Nix
56 lines
986 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
pythonOlder,
|
||
|
fetchFromGitHub,
|
||
|
poetry-core,
|
||
|
inkex,
|
||
|
lxml,
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "svg2tikz";
|
||
|
version = "3.2.0";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "xyz2tex";
|
||
|
repo = "svg2tikz";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-5SOUvrK83ff1x4MTVoJy68OaDmZUfrEwraEWmPMJKTA=";
|
||
|
};
|
||
|
|
||
|
build-system = [
|
||
|
poetry-core
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
inkex
|
||
|
lxml
|
||
|
];
|
||
|
|
||
|
pythonRelaxDeps = [
|
||
|
"lxml"
|
||
|
];
|
||
|
|
||
|
|
||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
|
||
|
pythonImportsCheck = [ "svg2tikz" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
changelog = "https://github.com/xyz2tex/svg2tikz/blob/${src.rev}/CHANGELOG.md";
|
||
|
homepage = "https://github.com/xyz2tex/svg2tikz";
|
||
|
description = "Set of tools for converting SVG graphics to TikZ/PGF code";
|
||
|
license = licenses.gpl2Plus;
|
||
|
maintainers = with maintainers; [
|
||
|
dotlambda
|
||
|
gal_bolle
|
||
|
];
|
||
|
};
|
||
|
}
|