about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-13 23:41:57 -0400
committerGitHub <noreply@github.com>2019-09-13 23:41:57 -0400
commit2b8712508d022520043ef1b47ed3b741b3fca257 (patch)
treead1e6fcbc4f8289ddbba83ce51c1cf7ec461a212 /pkgs/tools/text
parenta412701c8de181777558677b16be0bfed6eba519 (diff)
parent82c4218fe95c9dc34295cc0b09e3e08ff679b4d0 (diff)
downloadnixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar.gz
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar.bz2
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar.lz
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar.xz
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.tar.zst
nixlib-2b8712508d022520043ef1b47ed3b741b3fca257.zip
Merge pull request #68697 from Kiwi/ocrmypdf-67497
ocrmypdf: 8.2.3 -> 9.0.3 
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/ocrmypdf/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/tools/text/ocrmypdf/default.nix b/pkgs/tools/text/ocrmypdf/default.nix
index 514f3f675399..820d98408fb6 100644
--- a/pkgs/tools/text/ocrmypdf/default.nix
+++ b/pkgs/tools/text/ocrmypdf/default.nix
@@ -28,14 +28,14 @@ let
 
 in buildPythonApplication rec {
   pname = "ocrmypdf";
-  version = "8.2.3";
+  version = "9.0.3";
   disabled = ! python3Packages.isPy3k;
 
   src = fetchFromGitHub {
     owner = "jbarlow83";
     repo = "OCRmyPDF";
     rev = "v${version}";
-    sha256 = "1ldlyhxkav34y9d7g2kx3d4p26c2b82vnwi0ywnfynb16sav36d5";
+    sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
   };
 
   nativeBuildInputs = with python3Packages; [
@@ -51,12 +51,14 @@ in buildPythonApplication rec {
     img2pdf
     pdfminer
     pikepdf
+    pillow
     reportlab
     ruffus
+    setuptools
+    tqdm
   ];
 
   checkInputs = with python3Packages; [
-    hocr-tools
     pypdf2
     pytest
     pytest-helpers-namespace
@@ -67,7 +69,6 @@ in buildPythonApplication rec {
     setuptools
   ] ++ runtimeDeps;
 
-
   postPatch = ''
     substituteInPlace src/ocrmypdf/leptonica.py \
       --replace "ffi.dlopen(find_library('lept'))" \
@@ -93,6 +94,8 @@ in buildPythonApplication rec {
     and not test_old_unpaper'
   '';
 
+  makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
+
   meta = with stdenv.lib; {
     homepage = "https://github.com/jbarlow83/OCRmyPDF";
     description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";