summary refs log tree commit diff
path: root/pkgs/development/python-modules/inkex/default.nix
blob: c1c5479dfd8ff7538bc09955bce37b909250631e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.
    '';
  };
}