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

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

57 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-13 09:07:37 +00:00
{ fetchFromGitHub
, lib
, wrapGAppsHook
, python3Packages
, gtk3
, poppler_gi
2019-10-08 12:00:00 +00:00
}:
python3Packages.buildPythonApplication rec {
pname = "pdfarranger";
2023-07-13 09:07:37 +00:00
version = "1.10.0";
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}";
2023-07-13 09:07:37 +00:00
hash = "sha256-tNLy3HeHh8nBtmfJS5XhKX+KhIBnuUV2C8LwQl3mQLU=";
2019-10-08 12:00:00 +00:00
};
nativeBuildInputs = [
2023-07-13 09:07:37 +00:00
wrapGAppsHook
2019-10-08 12:00:00 +00:00
] ++ (with python3Packages; [
2023-07-13 09:07:37 +00:00
setuptools
2019-10-08 12:00:00 +00:00
]);
buildInputs = [
2023-07-13 09:07:37 +00:00
gtk3
poppler_gi
2019-10-08 12:00:00 +00:00
];
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
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;
changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";
2019-10-08 12:00:00 +00:00
};
}