mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, wrapGAppsHook
|
|
, python3Packages
|
|
, gtk3
|
|
, poppler_gi
|
|
, libhandy
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pdfarranger";
|
|
version = "1.10.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdfarranger";
|
|
repo = "pdfarranger";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-l//DeaIqUl6FdGFxM8yTKcTjVNvYMllorcoXoK33Iy4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
] ++ (with python3Packages; [
|
|
setuptools
|
|
]);
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
poppler_gi
|
|
libhandy
|
|
];
|
|
|
|
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";
|
|
mainProgram = "pdfarranger";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ symphorien ];
|
|
license = licenses.gpl3Plus;
|
|
changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";
|
|
};
|
|
}
|