13 python3Packages.buildPythonApplication rec {
14 pname = "pdfarranger";
18 src = fetchFromGitHub {
19 owner = "pdfarranger";
21 rev = "refs/tags/${version}";
22 hash = "sha256-94qziqJaKW8/L/6+U1yojxdG8BmeAStn+qbfGemTrVA=";
25 nativeBuildInputs = [ wrapGAppsHook3 ] ++ lib.optionals stdenv.isDarwin [ gettext ];
27 postPatch = lib.optionalString stdenv.isDarwin ''
28 LINTL="${lib.getLib gettext}/lib/libintl.8.dylib"
29 substituteInPlace pdfarranger/pdfarranger.py --replace-fail \
30 "return 'libintl.8.dylib'" \
35 build-system = with python3Packages; [ setuptools ];
43 dependencies = with python3Packages; [
51 # incompatible with wrapGAppsHook3
54 makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
56 doCheck = false; # no tests
59 inherit (src.meta) homepage;
60 description = "Merge or split pdf documents and rotate, crop and rearrange their pages using a graphical interface";
61 mainProgram = "pdfarranger";
62 maintainers = with lib.maintainers; [
66 license = lib.licenses.gpl3Plus;
67 changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";