1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 anyio,
8 numpy,
9 pillow,
10 pytest-forked,
11 pytest-xdist,
12 pytestCheckHook,
13 scipy,
14}:
15
16buildPythonPackage rec {
17 pname = "svgelements";
18 version = "1.9.6";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "meerk40t";
23 repo = "svgelements";
24 rev = "refs/tags/${version}";
25 hash = "sha256-nx2sGXeeh8S17TfRDFifQbdSxc4YGsDNnrPSSbxv7S4=";
26 };
27
28 nativeBuildInputs = [
29 setuptools
30 wheel
31 ];
32
33 pythonImportsCheck = [ "svgelements" ];
34
35 nativeCheckInputs = [
36 anyio
37 numpy
38 pillow
39 pytest-forked
40 pytest-xdist
41 pytestCheckHook
42 scipy
43 ];
44
45 meta = with lib; {
46 description = "SVG Parsing for Elements, Paths, and other SVG Objects";
47 homepage = "https://github.com/meerk40t/svgelements";
48 license = licenses.mit;
49 maintainers = with maintainers; [ GaetanLepage ];
50 };
51}