{ stdenv, fetchFromGitHub, lib , wrapGAppsHook, intltool, qpdf , python3Packages, gtk3, poppler_gi }: python3Packages.buildPythonApplication rec { pname = "pdfarranger"; version = "1.6.2"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; sha256 = "wJ6ImWpszfgErfLh7YgHirVKFIt0ij8A/CdYJmkNBP0="; }; nativeBuildInputs = [ wrapGAppsHook intltool ] ++ (with python3Packages; [ setuptools distutils_extra ]); buildInputs = [ gtk3 poppler_gi qpdf ]; propagatedBuildInputs = with python3Packages; [ pygobject3 pikepdf img2pdf setuptools ]; # incompatible with wrapGAppsHook strictDeps = false; 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.gpl3; }; }