2022-12-14 16:19:44 +00:00
|
|
|
{ lib, fetchFromGitHub, pkgs, python3, wrapGAppsHook, gobject-introspection }:
|
2018-04-23 18:37:27 +00:00
|
|
|
|
2020-10-18 20:26:45 +00:00
|
|
|
python3.pkgs.buildPythonApplication {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pdf-quench";
|
2018-04-23 18:37:27 +00:00
|
|
|
version = "1.0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxerwang";
|
|
|
|
repo = "pdf-quench";
|
|
|
|
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
|
|
|
|
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
|
|
|
|
};
|
|
|
|
|
2022-12-14 16:19:44 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
|
2018-04-30 15:01:07 +00:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
gtk3
|
|
|
|
goocanvas2
|
2018-04-30 15:26:59 +00:00
|
|
|
poppler_gi
|
2018-04-30 15:01:07 +00:00
|
|
|
];
|
2020-10-18 20:26:45 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pygobject3 pypdf2 ];
|
2018-04-23 18:37:27 +00:00
|
|
|
|
2018-04-30 15:01:07 +00:00
|
|
|
format = "other";
|
2018-04-23 18:37:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/linuxerwang/pdf-quench";
|
2018-04-23 18:37:27 +00:00
|
|
|
description = "A visual tool for cropping pdf files";
|
|
|
|
platforms = platforms.linux;
|
2018-09-01 12:18:09 +00:00
|
|
|
license = licenses.gpl2;
|
2018-04-23 18:37:27 +00:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|