2021-06-28 23:13:55 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, inkscape
|
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
|
|
|
|
, pygobject3
|
2021-06-28 23:13:55 +00:00
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "inkex";
|
|
|
|
inherit (inkscape) version;
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
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
|
|
|
|
pygobject3
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# We just copy the files.
|
|
|
|
dontUnpack = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
# No tests installed.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p "$out/${python.sitePackages}"
|
|
|
|
cp -r "${inkscape}/share/inkscape/extensions/inkex" "$out/${python.sitePackages}"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = inkscape.meta // {
|
|
|
|
description = "Inkscape Extensions Library";
|
|
|
|
longDescription = ''
|
|
|
|
This module provides support for inkscape extensions, it includes support for opening svg files and processing them.
|
|
|
|
|
|
|
|
Standalone, it is especially useful for running tests for Inkscape extensions.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|