1 { lib, fetchFromGitHub, pkgs, python3, wrapGAppsHook, gobject-introspection }:
3 python3.pkgs.buildPythonApplication {
7 src = fetchFromGitHub {
10 rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
11 sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
14 nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
15 buildInputs = with pkgs; [
20 propagatedBuildInputs = with python3.pkgs; [ pygobject3 pypdf2 ];
26 install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
30 homepage = "https://github.com/linuxerwang/pdf-quench";
31 description = "A visual tool for cropping pdf files";
32 platforms = platforms.linux;
33 license = licenses.gpl2;
34 maintainers = with maintainers; [ flokli ];