2017-04-02 22:09:09 +02:00
|
|
|
{ stdenv, fetchsvn
|
|
|
|
, wrapGAppsHook, makeWrapper, gettext
|
|
|
|
, python3Packages, gtk3, poppler_gi
|
2018-02-25 03:23:58 +01:00
|
|
|
, gnome3, gsettings-desktop-schemas, shared-mime-info,
|
2017-04-02 22:09:09 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
name = "pdfshuffler-unstable-2017-02-26"; # no official release in 5 years
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://svn.gna.org/svn/pdfshuffler/trunk";
|
|
|
|
rev = "20";
|
|
|
|
sha256 = "1g20dy45xg5vda9y58d2b1gkczj44xgrfi59jx6hr62ynd3z0dfc";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook gettext makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
gtk3 gsettings-desktop-schemas poppler_gi gnome3.adwaita-icon-theme
|
2017-04-02 22:09:09 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
pypdf2
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2018-02-25 03:23:58 +01:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
2017-04-02 22:09:09 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://gna.org/projects/pdfshuffler/;
|
|
|
|
description = "Merge or split pdf documents and rotate, crop and rearrange their pages";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2018-08-06 12:09:23 +02:00
|
|
|
license = licenses.gpl3;
|
2017-04-02 22:09:09 +02:00
|
|
|
};
|
|
|
|
}
|