depot/third_party/nixpkgs/pkgs/development/python-modules/inkex/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

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.
'';
};
}