nixpkgs/pkgs/applications/misc/pdfarranger/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, lib
2020-12-05 15:08:22 +01:00
, wrapGAppsHook, intltool
2019-10-08 14:00:00 +02:00
, python3Packages, gtk3, poppler_gi
}:
python3Packages.buildPythonApplication rec {
pname = "pdfarranger";
2022-09-19 00:53:37 +02:00
version = "1.9.0";
2019-10-08 14:00:00 +02:00
src = fetchFromGitHub {
2020-12-05 15:03:47 +01:00
owner = pname;
2019-10-08 14:00:00 +02:00
repo = pname;
2022-09-19 00:53:37 +02:00
rev = "refs/tags/${version}";
sha256 = "sha256-T7Uo4WZSmSwMHzi8jWX/fw9ZsNKF+SZFy8O2NeD6R7o=";
2019-10-08 14:00:00 +02:00
};
nativeBuildInputs = [
wrapGAppsHook intltool
] ++ (with python3Packages; [
setuptools distutils_extra
]);
buildInputs = [
gtk3 poppler_gi
];
propagatedBuildInputs = with python3Packages; [
pygobject3
2020-04-11 14:00:00 +02:00
pikepdf
2020-07-16 14:00:00 +02:00
img2pdf
2020-04-11 14:00:00 +02:00
setuptools
python-dateutil
2019-10-08 14:00:00 +02:00
];
# incompatible with wrapGAppsHook
strictDeps = false;
2020-12-05 15:08:22 +01:00
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2019-10-08 14:00:00 +02:00
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 ];
2021-01-25 19:27:47 +01:00
license = licenses.gpl3Plus;
2019-10-08 14:00:00 +02:00
};
}