Merge pull request #324611 from eclairevoyant/pdfarranger

pdfarranger: migrate to by-name, modernise, and reformat
This commit is contained in:
Guillaume Girol 2024-07-06 17:19:06 +02:00 committed by GitHub
commit 3054a201cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 23 deletions

View File

@ -1,10 +1,11 @@
{ fetchFromGitHub
, lib
, wrapGAppsHook3
, python3Packages
, gtk3
, poppler_gi
, libhandy
{
fetchFromGitHub,
lib,
wrapGAppsHook3,
python3Packages,
gtk3,
poppler_gi,
libhandy,
}:
python3Packages.buildPythonApplication rec {
@ -19,11 +20,9 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-bHV6EluA7xp+HyejnSWJwfRBDcTuZq5Gzz0KWIs0qhA=";
};
nativeBuildInputs = [
wrapGAppsHook3
] ++ (with python3Packages; [
setuptools
]);
nativeBuildInputs = [ wrapGAppsHook3 ];
build-system = with python3Packages; [ setuptools ];
buildInputs = [
gtk3
@ -31,7 +30,7 @@ python3Packages.buildPythonApplication rec {
libhandy
];
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
pygobject3
pikepdf
img2pdf
@ -42,19 +41,17 @@ python3Packages.buildPythonApplication rec {
# incompatible with wrapGAppsHook3
strictDeps = false;
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
doCheck = false; # no tests
meta = with lib; {
meta = {
inherit (src.meta) homepage;
description = "Merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface";
description = "Merge or split pdf documents and rotate, crop and rearrange their pages using a graphical interface";
mainProgram = "pdfarranger";
platforms = platforms.linux;
maintainers = with maintainers; [ symphorien ];
license = licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ symphorien ];
license = lib.licenses.gpl3Plus;
changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}";
};
}

View File

@ -11597,8 +11597,6 @@ with pkgs;
pdf-quench = callPackage ../applications/misc/pdf-quench { };
pdfarranger = callPackage ../applications/misc/pdfarranger { };
briss = callPackage ../tools/graphics/briss { };
brickd = callPackage ../servers/brickd { };