···11+{ stdenv, fetchFromGitHub, python3Packages, libsForQt5, ghostscript }:
22+33+python3Packages.buildPythonApplication rec {
44+ pname = "krop";
55+ version = "0.5.0";
66+77+ src = fetchFromGitHub {
88+ owner = "arminstraub";
99+ repo = pname;
1010+ rev = "v${version}";
1111+ sha256 = "0y8z9xr10wbzmi1dg1zpcsf3ihnxrnvlaf72821x3390s3qsnydf";
1212+ };
1313+1414+ propagatedBuildInputs = with python3Packages; [
1515+ pyqt5
1616+ pypdf2
1717+ poppler-qt5
1818+ libsForQt5.poppler
1919+ ghostscript
2020+ ];
2121+2222+ # Disable checks because of interference with older Qt versions // xcb
2323+ doCheck = false;
2424+2525+ meta = {
2626+ homepage = http://arminstraub.com/software/krop;
2727+ description = "Graphical tool to crop the pages of PDF files";
2828+ longDescription = ''
2929+ Krop is a tool that allows you to optimise your PDF files, and remove
3030+ sections of the page you do not want. A unique feature of krop, at least to my
3131+ knowledge, is its ability to automatically split pages into subpages to fit the
3232+ limited screensize of devices such as eReaders. This is particularly useful, if
3333+ your eReader does not support convenient scrolling. Krop also has a command line
3434+ interface.
3535+ '';
3636+ license = stdenv.lib.licenses.gpl3Plus;
3737+ maintainers = with stdenv.lib.maintainers; [ leenaars ];
3838+ platforms = stdenv.lib.platforms.linux;
3939+ };
4040+}