nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 832 B view raw
1{ buildPythonPackage 2, inkscape 3, lxml 4, python 5}: 6 7buildPythonPackage { 8 pname = "inkex"; 9 inherit (inkscape) version; 10 11 format = "other"; 12 13 propagatedBuildInputs = [ 14 lxml 15 ]; 16 17 # We just copy the files. 18 dontUnpack = true; 19 dontBuild = true; 20 21 # No tests installed. 22 doCheck = false; 23 24 installPhase = '' 25 runHook preInstall 26 27 mkdir -p "$out/${python.sitePackages}" 28 cp -r "${inkscape}/share/inkscape/extensions/inkex" "$out/${python.sitePackages}" 29 30 runHook postInstall 31 ''; 32 33 meta = inkscape.meta // { 34 description = "Inkscape Extensions Library"; 35 longDescription = '' 36 This module provides support for inkscape extensions, it includes support for opening svg files and processing them. 37 38 Standalone, it is especially useful for running tests for Inkscape extensions. 39 ''; 40 }; 41}