2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitLab
|
|
|
|
, poetry-core
|
2022-06-16 17:23:12 +00:00
|
|
|
, cssselect
|
2021-06-28 23:13:55 +00:00
|
|
|
, lxml
|
2022-06-16 17:23:12 +00:00
|
|
|
, numpy
|
2023-03-04 12:14:45 +00:00
|
|
|
, packaging
|
|
|
|
, pillow
|
2022-06-16 17:23:12 +00:00
|
|
|
, pygobject3
|
2023-03-04 12:14:45 +00:00
|
|
|
, pyserial
|
|
|
|
, scour
|
|
|
|
, gobject-introspection
|
|
|
|
, pytestCheckHook
|
|
|
|
, gtk3
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "inkex";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.2.2";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "inkscape";
|
|
|
|
repo = "extensions";
|
|
|
|
rev = "EXTENSIONS_AT_INKSCAPE_${version}";
|
|
|
|
hash = "sha256-jw7daZQTBxLHWOpjZkMYtP1vIQvd/eLgiktWqVSjEgU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"1.2.0"' '"${version}"' \
|
|
|
|
--replace 'scour = "^0.37"' 'scour = ">=0.37"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
cssselect
|
2021-06-28 23:13:55 +00:00
|
|
|
lxml
|
2022-06-16 17:23:12 +00:00
|
|
|
numpy
|
2023-03-04 12:14:45 +00:00
|
|
|
packaging
|
|
|
|
pillow
|
2022-06-16 17:23:12 +00:00
|
|
|
pygobject3
|
2023-03-04 12:14:45 +00:00
|
|
|
pyserial
|
|
|
|
scour
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [ "inkex" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
checkInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_extract_multiple"
|
|
|
|
"test_lookup_and"
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
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"
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
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 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|