c1e680f8da
https://inkscape.org/news/2022/05/16/inkscape-12/ https://media.inkscape.org/media/doc/release_notes/1.2/Inkscape_1.2.html Needed to add some Python dependencies: - appdirs, beautifulsoup4, cachecontrol, requests and pygobject3 (gi) for clipart importer - cssselect and numpy for inkex - pygobject3 for inkex.gui Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
47 lines
904 B
Nix
47 lines
904 B
Nix
{ buildPythonPackage
|
|
, inkscape
|
|
, cssselect
|
|
, lxml
|
|
, numpy
|
|
, pygobject3
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "inkex";
|
|
inherit (inkscape) version;
|
|
|
|
format = "other";
|
|
|
|
propagatedBuildInputs = [
|
|
cssselect
|
|
lxml
|
|
numpy
|
|
pygobject3
|
|
];
|
|
|
|
# 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.
|
|
'';
|
|
};
|
|
}
|