Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.5 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 libsForQt5, 6 ghostscript, 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "krop"; 11 version = "0.7.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "arminstraub"; 16 repo = "krop"; 17 tag = "v${version}"; 18 hash = "sha256-8mhTUP0oS+AnZXVmywxBTbR1OOg18U0RQ1H9lyjaiVI="; 19 }; 20 21 nativeBuildInputs = [ libsForQt5.wrapQtAppsHook ]; 22 23 buildInputs = [ 24 libsForQt5.poppler 25 libsForQt5.qtwayland 26 ]; 27 28 dependencies = with python3Packages; [ 29 pyqt5 30 pypdf2 31 poppler-qt5 32 ghostscript 33 ]; 34 35 makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ]; 36 37 # Disable checks because of interference with older Qt versions // xcb 38 doCheck = false; 39 40 meta = { 41 homepage = "http://arminstraub.com/software/krop"; 42 description = "Graphical tool to crop the pages of PDF files"; 43 longDescription = '' 44 Krop is a tool that allows you to optimise your PDF files, and remove 45 sections of the page you do not want. A unique feature of krop, at least to my 46 knowledge, is its ability to automatically split pages into subpages to fit the 47 limited screensize of devices such as eReaders. This is particularly useful, if 48 your eReader does not support convenient scrolling. Krop also has a command line 49 interface. 50 ''; 51 license = lib.licenses.gpl3Plus; 52 maintainers = with lib.maintainers; [ leenaars ]; 53 platforms = lib.platforms.linux; 54 mainProgram = "krop"; 55 }; 56}