git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #70784 from symphorien/pdfarranger

pdfarranger: init at 1.3.1

commitec760828d9790502833e32391d7aedde2f3268cc authorLéo Gaspard <leo@gaspard.io> dateSun 20 Oct 2019, 16:32 (7 years ago) parenteb7a680226207d
2 files changed+46
pkgs/applications/misc/pdfarranger/default.nix+44 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/pdfarranger/default.nixnew file+44
@@ -0,0 +1,44 @@
1+{ stdenv, fetchFromGitHub, lib
2+, wrapGAppsHook, intltool
3+, python3Packages, gtk3, poppler_gi
4+}:
5+
6+python3Packages.buildPythonApplication rec {
7+ pname = "pdfarranger";
8+ version = "1.3.1";
9+
10+ src = fetchFromGitHub {
11+ owner = "jeromerobert";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "1f8m8r81322i97wkqpmf7a4kiwnq244n6cnbldh03jc49vwq2kxx";
15+ };
16+
17+ nativeBuildInputs = [
18+ wrapGAppsHook intltool
19+ ] ++ (with python3Packages; [
20+ setuptools distutils_extra
21+ ]);
22+
23+ buildInputs = [
24+ gtk3 poppler_gi
25+ ];
26+
27+ propagatedBuildInputs = with python3Packages; [
28+ pygobject3
29+ pypdf2
30+ ];
31+
32+ # incompatible with wrapGAppsHook
33+ strictDeps = false;
34+
35+ doCheck = false; # no tests
36+
37+ meta = with lib; {
38+ inherit (src.meta) homepage;
39+ description = "Merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface";
40+ platforms = platforms.linux;
41+ maintainers = with maintainers; [ symphorien ];
42+ license = licenses.gpl3;
43+ };
44+}
pkgs/top-level/all-packages.nix+2
@@ -5486,6 +5486,8 @@ in
54865486
54875487 jbig2enc = callPackage ../tools/graphics/jbig2enc { };
54885488
5489+ pdfarranger = callPackage ../applications/misc/pdfarranger { };
5490+
54895491 pdfread = callPackage ../tools/graphics/pdfread {
54905492 inherit (pythonPackages) pillow;
54915493 };