depot/third_party/nixpkgs/pkgs/by-name/pd/pdfarranger/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

57 lines
1.2 KiB
Nix

{
fetchFromGitHub,
lib,
wrapGAppsHook3,
python3Packages,
gtk3,
poppler_gi,
libhandy,
}:
python3Packages.buildPythonApplication rec {
pname = "pdfarranger";
version = "1.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pdfarranger";
repo = "pdfarranger";
rev = "refs/tags/${version}";
hash = "sha256-94qziqJaKW8/L/6+U1yojxdG8BmeAStn+qbfGemTrVA=";
};
nativeBuildInputs = [ wrapGAppsHook3 ];
build-system = with python3Packages; [ setuptools ];
buildInputs = [
gtk3
poppler_gi
libhandy
];
dependencies = with python3Packages; [
pygobject3
pikepdf
img2pdf
setuptools
python-dateutil
];
# incompatible with wrapGAppsHook3
strictDeps = false;
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
doCheck = false; # no tests
meta = {
inherit (src.meta) homepage;
description = "Merge or split pdf documents and rotate, crop and rearrange their pages using a graphical interface";
mainProgram = "pdfarranger";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ symphorien ];
license = lib.licenses.gpl3Plus;
changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";
};
}