Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 90 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091{ lib, stdenv, buildPythonPackage, inkscape, poetry-core, cssselect, lxml, numpy, pillow, pygobject3, pyparsing, pyserial, scour, tinycss2, gobject-introspection, pytestCheckHook, gtk3,}:
buildPythonPackage { pname = "inkex"; inherit (inkscape) version; pyproject = true;
inherit (inkscape) src;
build-system = [ poetry-core ];
pythonRelaxDeps = [ "lxml" "numpy" ];
dependencies = [ cssselect lxml numpy pillow pygobject3 pyparsing pyserial scour tinycss2 ];
pythonImportsCheck = [ "inkex" ];
nativeCheckInputs = [ gobject-introspection pytestCheckHook ];
checkInputs = [ gtk3 ];
disabledTests = [ "test_extract_multiple" "test_lookup_and" ] ++ lib.optional stdenv.hostPlatform.isDarwin [ "test_image_extract" "test_path_number_nodes" "test_plotter" # Hangs ];
disabledTestPaths = [ # Fatal Python error: Segmentation fault "tests/test_inkex_gui.py" "tests/test_inkex_gui_listview.py" "tests/test_inkex_gui_window.py" # Failed to find pixmap 'image-missing' in /build/source/tests/data/ "tests/test_inkex_gui_pixmaps.py" ];
postPatch = '' cd share/extensions
substituteInPlace pyproject.toml \ --replace-fail 'scour = "^0.37"' 'scour = ">=0.37"' '';
meta = { description = "Library for manipulating SVG documents which is the basis for Inkscape extensions"; homepage = "https://gitlab.com/inkscape/extensions"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ dotlambda ]; };}