at 25.11-pre 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 inkscape, 6 poetry-core, 7 cssselect, 8 lxml, 9 numpy, 10 pillow, 11 pygobject3, 12 pyparsing, 13 pyserial, 14 scour, 15 tinycss2, 16 gobject-introspection, 17 pytestCheckHook, 18 gtk3, 19}: 20 21buildPythonPackage { 22 pname = "inkex"; 23 inherit (inkscape) version; 24 pyproject = true; 25 26 inherit (inkscape) src; 27 28 build-system = [ poetry-core ]; 29 30 pythonRelaxDeps = [ "numpy" ]; 31 32 dependencies = [ 33 cssselect 34 lxml 35 numpy 36 pillow 37 pygobject3 38 pyparsing 39 pyserial 40 scour 41 tinycss2 42 ]; 43 44 pythonImportsCheck = [ "inkex" ]; 45 46 nativeCheckInputs = [ 47 gobject-introspection 48 pytestCheckHook 49 ]; 50 51 checkInputs = [ 52 gtk3 53 ]; 54 55 disabledTests = 56 [ 57 "test_extract_multiple" 58 "test_lookup_and" 59 ] 60 ++ lib.optional stdenv.hostPlatform.isDarwin [ 61 "test_image_extract" 62 "test_path_number_nodes" 63 "test_plotter" # Hangs 64 ]; 65 66 disabledTestPaths = [ 67 # Fatal Python error: Segmentation fault 68 "tests/test_inkex_gui.py" 69 "tests/test_inkex_gui_listview.py" 70 "tests/test_inkex_gui_window.py" 71 # Failed to find pixmap 'image-missing' in /build/source/tests/data/ 72 "tests/test_inkex_gui_pixmaps.py" 73 ]; 74 75 postPatch = '' 76 cd share/extensions 77 78 substituteInPlace pyproject.toml \ 79 --replace-fail 'scour = "^0.37"' 'scour = ">=0.37"' 80 ''; 81 82 meta = { 83 description = "Library for manipulating SVG documents which is the basis for Inkscape extensions"; 84 homepage = "https://gitlab.com/inkscape/extensions"; 85 license = lib.licenses.gpl2Plus; 86 maintainers = with lib.maintainers; [ dotlambda ]; 87 }; 88}