60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
40 lines
786 B
Nix
40 lines
786 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, lxml
|
|
, matplotlib
|
|
, pytestCheckHook
|
|
, nose
|
|
}:
|
|
|
|
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
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook nose ];
|
|
|
|
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 ];
|
|
};
|
|
}
|