diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2019-10-08 12:00:00 +0000 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2019-10-09 12:00:00 +0000 |
commit | 226207d7b1947e9706a3ca8c7307e2d503f5b56a (patch) | |
tree | f86babe45ae596eb228606a724c71592923f757e /pkgs | |
parent | 07d4df5962625285bcc09b057b40001bfa32340d (diff) | |
download | nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar.gz nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar.bz2 nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar.lz nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar.xz nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.tar.zst nixlib-226207d7b1947e9706a3ca8c7307e2d503f5b56a.zip |
pdfarranger: init at 1.3.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/pdfarranger/default.nix | 44 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pdfarranger/default.nix b/pkgs/applications/misc/pdfarranger/default.nix new file mode 100644 index 000000000000..ed54ccbb0a15 --- /dev/null +++ b/pkgs/applications/misc/pdfarranger/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchFromGitHub, lib +, wrapGAppsHook, intltool +, python3Packages, gtk3, poppler_gi +}: + +python3Packages.buildPythonApplication rec { + pname = "pdfarranger"; + version = "1.3.1"; + + src = fetchFromGitHub { + owner = "jeromerobert"; + repo = pname; + rev = version; + sha256 = "1f8m8r81322i97wkqpmf7a4kiwnq244n6cnbldh03jc49vwq2kxx"; + }; + + nativeBuildInputs = [ + wrapGAppsHook intltool + ] ++ (with python3Packages; [ + setuptools distutils_extra + ]); + + buildInputs = [ + gtk3 poppler_gi + ]; + + propagatedBuildInputs = with python3Packages; [ + pygobject3 + pypdf2 + ]; + + # incompatible with wrapGAppsHook + strictDeps = false; + + doCheck = false; # no tests + + meta = with lib; { + inherit (src.meta) homepage; + description = "Merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface"; + platforms = platforms.linux; + maintainers = with maintainers; [ symphorien ]; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f80a082ffd49..93daeb28345c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5448,6 +5448,8 @@ in jbig2enc = callPackage ../tools/graphics/jbig2enc { }; + pdfarranger = callPackage ../applications/misc/pdfarranger { }; + pdfread = callPackage ../tools/graphics/pdfread { inherit (pythonPackages) pillow; }; |