2022-07-14 12:49:19 +00:00
|
|
|
{ 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
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ intltool pandoc wrapGAppsHook gobject-introspection ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|