1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 python3,
6}:
7
8stdenv.mkDerivation {
9 pname = "inkscape-applytransforms";
10 version = "0.pre+unstable=2021-05-11";
11
12 src = fetchFromGitHub {
13 owner = "Klowner";
14 repo = "inkscape-applytransforms";
15 rev = "5b3ed4af0fb66e399e686fc2b649b56db84f6042";
16 sha256 = "XWwkuw+Um/cflRWjIeIgQUxJLrk2DLDmx7K+pMWvIlI=";
17 };
18
19 nativeCheckInputs = [
20 python3.pkgs.inkex
21 python3.pkgs.pytestCheckHook
22 ];
23
24 dontBuild = true;
25
26 doCheck = true;
27
28 installPhase = ''
29 runHook preInstall
30
31 install -Dt "$out/share/inkscape/extensions" *.inx *.py
32
33 runHook postInstall
34 '';
35
36 meta = with lib; {
37 description = "Inkscape extension which removes all matrix transforms by applying them recursively to shapes";
38 homepage = "https://github.com/Klowner/inkscape-applytransforms";
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ jtojnar ];
41 platforms = platforms.all;
42 };
43}