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