about summary refs log tree commit diff
path: root/pkgs/applications/office/bookletimposer/default.nix
blob: 806a9f76addf88ad9bf76b5492799070b69d7c04 (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
42
43
44
{ lib
, fetchFromGitLab
, python3
, intltool
, pandoc
, gobject-introspection
, wrapGAppsHook
, gtk3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "bookletimposer";
  version = "0.3.1";

  src = fetchFromGitLab {
    domain = "git.codecoop.org";
    owner = "kjo";
    repo = "bookletimposer";
    rev = version;
    sha256 = "sha256-AEpvsFBJfyqLucC0l4AN/nA2+aYBR50BEgAcNDJBSqg=";
  };

  patches = [
    ./i18n.patch
    ./configdir.patch
  ];

  nativeBuildInputs = [ intltool pandoc wrapGAppsHook ];

  buildInputs = [ gobject-introspection ];

  propagatedBuildInputs = [
     gtk3
     (python3.withPackages (ps: with ps; [ distutils_extra pypdf2 pygobject3 ]))
  ];

  meta = {
    homepage = "https://kjo.herbesfolles.org/bookletimposer/";
    description = "A utility to achieve some basic imposition on PDF documents, especially designed to work on booklets";
    platforms = lib.platforms.linux;
    license = "GPL-3.0-or-later";
    maintainers = with lib.maintainers; [ afontain ];
  };
}