Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / inkex / default.nix
blobe6c1b5da2806f40ea696fafee93ae9fb6f937e3d
1 { lib
2 , buildPythonPackage
3 , inkscape
4 , fetchFromGitLab
5 , poetry-core
6 , cssselect
7 , lxml
8 , numpy
9 , packaging
10 , pillow
11 , pygobject3
12 , pyparsing
13 , pyserial
14 , scour
15 , gobject-introspection
16 , pytestCheckHook
17 , gtk3
20 buildPythonPackage {
21   pname = "inkex";
22   inherit (inkscape) version;
24   format = "pyproject";
26   inherit (inkscape) src;
28   nativeBuildInputs = [
29     poetry-core
30   ];
32   propagatedBuildInputs = [
33     cssselect
34     lxml
35     numpy
36     pygobject3
37     pyserial
38   ];
40   pythonImportsCheck = [ "inkex" ];
42   nativeCheckInputs = [
43     gobject-introspection
44     pytestCheckHook
45   ];
47   checkInputs = [
48     gtk3
49     packaging
50     pillow
51     pyparsing
52     scour
53   ];
55   disabledTests = [
56     "test_extract_multiple"
57     "test_lookup_and"
58   ];
60   disabledTestPaths = [
61     # Fatal Python error: Segmentation fault
62     "tests/test_inkex_gui.py"
63     "tests/test_inkex_gui_listview.py"
64     "tests/test_inkex_gui_window.py"
65     # Failed to find pixmap 'image-missing' in /build/source/tests/data/
66     "tests/test_inkex_gui_pixmaps.py"
67   ];
69   postPatch = ''
70     cd share/extensions
72     substituteInPlace pyproject.toml \
73       --replace-fail 'scour = "^0.37"' 'scour = ">=0.37"' \
74       --replace-fail 'lxml = "^4.5.0"' 'lxml = "^4.5.0 || ^5.0.0"'
75   '';
77   meta = {
78     description = "Library for manipulating SVG documents which is the basis for Inkscape extensions";
79     homepage = "https://gitlab.com/inkscape/extensions";
80     license = lib.licenses.gpl2Plus;
81     maintainers = with lib.maintainers; [ dotlambda ];
82   };