python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / pdf-quench / default.nix
blob4255127b3dfe62530e0dad3c5d8f1ef135658857
1 { lib, fetchFromGitHub, pkgs, python3, wrapGAppsHook}:
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 ];
15   buildInputs = with pkgs; [
16     gtk3
17     gobject-introspection
18     goocanvas2
19     poppler_gi
20   ];
21   propagatedBuildInputs = with python3.pkgs; [ pygobject3 pypdf2 ];
23   format = "other";
24   doCheck = false;
26   installPhase = ''
27     install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
28   '';
30   meta = with lib; {
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 ];
36   };