2023-07-15 17:15:38 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-07-15 17:15:38 +00:00
|
|
|
, python3Packages
|
|
|
|
, gtk3
|
|
|
|
, poppler_gi
|
2024-02-29 20:09:43 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pdfarranger";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.10.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-02-29 20:09:43 +00:00
|
|
|
owner = "pdfarranger";
|
|
|
|
repo = "pdfarranger";
|
2022-09-22 12:36:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-l//DeaIqUl6FdGFxM8yTKcTjVNvYMllorcoXoK33Iy4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with python3Packages; [
|
2023-07-15 17:15:38 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
gtk3
|
|
|
|
poppler_gi
|
2024-02-29 20:09:43 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# incompatible with wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pdfarranger";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ symphorien ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|