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