2018-04-23 19:37:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgs, pythonPackages, wrapGAppsHook}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
pythonPackages.buildPythonApplication {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pdf-quench";
|
2018-04-23 19:37:27 +01:00
|
|
|
version = "1.0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxerwang";
|
|
|
|
repo = "pdf-quench";
|
|
|
|
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
|
|
|
|
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
2018-04-30 16:01:07 +01:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
gtk3
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-04-30 16:01:07 +01:00
|
|
|
goocanvas2
|
2018-04-30 16:26:59 +01:00
|
|
|
poppler_gi
|
2018-04-30 16:01:07 +01:00
|
|
|
];
|
2018-04-23 19:37:27 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject3 pypdf2 ];
|
|
|
|
|
2018-04-30 16:01:07 +01:00
|
|
|
format = "other";
|
2018-04-23 19:37:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxerwang/pdf-quench";
|
2018-04-23 19:37:27 +01:00
|
|
|
description = "A visual tool for cropping pdf files";
|
|
|
|
platforms = platforms.linux;
|
2018-09-01 13:18:09 +01:00
|
|
|
license = licenses.gpl2;
|
2018-04-23 19:37:27 +01:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|