1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
wheel,
anyio,
numpy,
pillow,
pytest-forked,
pytest-xdist,
pytestCheckHook,
scipy,
}:
buildPythonPackage rec {
pname = "svgelements";
version = "1.9.6";
pyproject = true;
src = fetchFromGitHub {
owner = "meerk40t";
repo = "svgelements";
tag = version;
hash = "sha256-nx2sGXeeh8S17TfRDFifQbdSxc4YGsDNnrPSSbxv7S4=";
};
patches = [
(fetchpatch {
name = "fix-assert-tests";
url = "https://github.com/meerk40t/svgelements/commit/23da98941a94cf1afed39c10750222ccfee73c9f.patch";
hash = "sha256-/53w4eWlaSNEQxuoAxPrN2HciZ3Az2A2SKcIAlNgKAs=";
})
];
build-system = [
setuptools
wheel
];
pythonImportsCheck = [ "svgelements" ];
nativeCheckInputs = [
anyio
numpy
pillow
pytest-forked
pytest-xdist
pytestCheckHook
scipy
];
meta = {
description = "SVG Parsing for Elements, Paths, and other SVG Objects";
homepage = "https://github.com/meerk40t/svgelements";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|