mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ fetchFromGitHub, lib
|
|
, wrapGAppsHook, intltool
|
|
, python3Packages, gtk3, poppler_gi
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pdfarranger";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0xfxcwb24rp0kni2b4wdk6fvhqnhd6fh559ag6wdr4sspzkqwdjf";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook intltool
|
|
] ++ (with python3Packages; [
|
|
setuptools distutils_extra
|
|
]);
|
|
|
|
buildInputs = [
|
|
gtk3 poppler_gi
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pygobject3
|
|
pikepdf
|
|
img2pdf
|
|
setuptools
|
|
python-dateutil
|
|
];
|
|
|
|
# incompatible with wrapGAppsHook
|
|
strictDeps = false;
|
|
dontWrapGApps = true;
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
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 ];
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|