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