depot/third_party/nixpkgs/pkgs/development/python-modules/svg2tikz/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

48 lines
944 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, inkex
, lxml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "svg2tikz";
version = "3.0.1";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "xyz2tex";
repo = "svg2tikz";
rev = "refs/tags/v${version}";
hash = "sha256-hvGvJFxhu7llj+tFfZvz12dZ8QYjY7zcLzB5S44l+IM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
inkex
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 ];
};
}