1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lxml,
7 matplotlib,
8 pytestCheckHook,
9 nose,
10}:
11
12buildPythonPackage rec {
13 pname = "svgutils";
14 version = "0.3.4";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "btel";
19 repo = "svg_utils";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-ITvZx+3HMbTyaRmCb7tR0LKqCxGjqDdV9/2taziUD0c=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [
27 lxml
28 matplotlib
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 nose
34 ];
35
36 pythonImportsCheck = [ "svgutils" ];
37
38 meta = with lib; {
39 description = "Python tools to create and manipulate SVG files";
40 homepage = "https://github.com/btel/svg_utils";
41 license = licenses.mit;
42 maintainers = with maintainers; [ bcdarwin ];
43 };
44}