nixpkgs-suyu/pkgs/applications/misc/pdf-quench/default.nix

37 lines
986 B
Nix
Raw Normal View History

2018-04-23 20:37:27 +02:00
{ stdenv, fetchFromGitHub, pkgs, pythonPackages, wrapGAppsHook}:
pythonPackages.buildPythonApplication rec {
name = "pdf-quench-${version}";
version = "1.0.5";
src = fetchFromGitHub {
owner = "linuxerwang";
repo = "pdf-quench";
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
};
nativeBuildInputs = [ wrapGAppsHook ];
2018-04-30 17:01:07 +02:00
buildInputs = with pkgs; [
gtk3
gobjectIntrospection
goocanvas2
(poppler.override { introspectionSupport = true; })
];
2018-04-23 20:37:27 +02:00
propagatedBuildInputs = with pythonPackages; [ pygobject3 pypdf2 ];
2018-04-30 17:01:07 +02:00
format = "other";
2018-04-23 20:37:27 +02:00
doCheck = false;
installPhase = ''
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
'';
meta = with stdenv.lib; {
homepage = https://github.com/linuxerwang/pdf-quench;
description = "A visual tool for cropping pdf files";
platforms = platforms.linux;
maintainers = with maintainers; [ flokli ];
};
}