Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / pdf-quench / default.nix
blob0245fadb171a7a84727f25c9bde399e93ebdbed3
1 { lib, fetchFromGitHub, pkgs, python3, wrapGAppsHook, gobject-introspection }:
3 python3.pkgs.buildPythonApplication {
4   pname = "pdf-quench";
5   version = "1.0.5";
7   src = fetchFromGitHub {
8     owner = "linuxerwang";
9     repo = "pdf-quench";
10     rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
11     sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
12   };
14   nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
15   buildInputs = with pkgs; [
16     gtk3
17     goocanvas2
18     poppler_gi
19   ];
20   propagatedBuildInputs = with python3.pkgs; [ pygobject3 pypdf2 ];
22   format = "other";
23   doCheck = false;
25   installPhase = ''
26     install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
27   '';
29   meta = with lib; {
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 ];
35   };