1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pillow,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "svg.path";
13 version = "7.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "regebro";
20 repo = "svg.path";
21 tag = version;
22 hash = "sha256-x1u56O3HilA7Zmkrsot6Nh9E1e88qHwYnk1ySs08tbQ=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [
28 pillow
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 # generated image differs from example
34 "test_image"
35 ];
36
37 pythonImportsCheck = [ "svg.path" ];
38
39 meta = with lib; {
40 description = "SVG path objects and parser";
41 homepage = "https://github.com/regebro/svg.path";
42 changelog = "https://github.com/regebro/svg.path/blob/${version}/CHANGES.txt";
43 license = licenses.mit;
44 maintainers = [ ];
45 };
46}