mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
1dea82ff05
This is useful for testing Inkscape extensions.
42 lines
832 B
Nix
42 lines
832 B
Nix
{ 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.
|
|
'';
|
|
};
|
|
}
|