2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
lxml,
|
|
|
|
matplotlib,
|
|
|
|
pytestCheckHook,
|
|
|
|
nose,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "svgutils";
|
|
|
|
version = "0.3.4";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "btel";
|
|
|
|
repo = "svg_utils";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ITvZx+3HMbTyaRmCb7tR0LKqCxGjqDdV9/2taziUD0c=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
nose
|
|
|
|
];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "svgutils" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tools to create and manipulate SVG files";
|
|
|
|
homepage = "https://github.com/btel/svg_utils";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|