2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook, intltool
|
|
|
|
, python3Packages, gtk3, poppler_gi
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pdfarranger";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-07 07:45:13 +00:00
|
|
|
owner = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "1c2mafnz8pv32wzkc2wx4q8y2x7xffpn6ag12dj7ga5n772fb6s3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook intltool
|
|
|
|
] ++ (with python3Packages; [
|
|
|
|
setuptools distutils_extra
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 poppler_gi
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
pikepdf
|
2020-07-18 16:06:22 +00:00
|
|
|
img2pdf
|
2020-04-24 23:36:52 +00:00
|
|
|
setuptools
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# incompatible with wrapGAppsHook
|
|
|
|
strictDeps = false;
|
2020-12-07 07:45:13 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
2020-04-24 23:36:52 +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-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|