1{ lib
2, buildPythonPackage
3, fetchPypi
4, pillow
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "svg.path";
11 version = "6.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-GiFZ+duJjfk8RjfP08yvfaH9Bz9Z+ppZUMc+RtSqGso=";
19 };
20
21 nativeCheckInputs = [
22 pillow
23 pytestCheckHook
24 ];
25
26 disabledTests = [
27 # generated image differs from example
28 "test_image"
29 ];
30
31 pythonImportsCheck = [
32 "svg.path"
33 ];
34
35 meta = with lib; {
36 description = "SVG path objects and parser";
37 homepage = "https://github.com/regebro/svg.path";
38 license = licenses.mit;
39 maintainers = with maintainers; [ goibhniu ];
40 };
41}