python3.pkgs.inkex: init from inkscape

This is useful for testing Inkscape extensions.
This commit is contained in:
Jan Tojnar 2021-06-25 00:54:53 +02:00
parent a5252d1f00
commit 1dea82ff05
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ buildPythonPackage
, inkscape
, lxml
, python
}:
buildPythonPackage {
pname = "inkex";
inherit (inkscape) version;
format = "other";
propagatedBuildInputs = [
lxml
];
# 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.
'';
};
}

View File

@ -3493,6 +3493,8 @@ in {
injector = callPackage ../development/python-modules/injector { };
inkex = callPackage ../development/python-modules/inkex { };
inotify-simple = callPackage ../development/python-modules/inotify-simple { };
inquirer = callPackage ../development/python-modules/inquirer { };