summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-15 19:21:19 -0500
committerJon <jonringer@users.noreply.github.com>2019-12-15 23:15:07 -0800
commit01956b5605006cf1d61f58a52a049a40c1ebedc8 (patch)
tree7e0535710392bb95b90f8f6e23bc1f24c2373598 /pkgs/tools/text
parent1581bc696a1a0b31e701a889550bfa8841cd94cb (diff)
downloadnixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar.gz
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar.bz2
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar.lz
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar.xz
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.tar.zst
nixpkgs-01956b5605006cf1d61f58a52a049a40c1ebedc8.zip
ocrmypdf: 9.0.3 -> 9.2.0
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/ocrmypdf/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/text/ocrmypdf/default.nix b/pkgs/tools/text/ocrmypdf/default.nix
index 820d98408fb..13353daa171 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 = "9.0.3";
+  version = "9.2.0";
   disabled = ! python3Packages.isPy3k;
 
   src = fetchFromGitHub {
     owner = "jbarlow83";
     repo = "OCRmyPDF";
     rev = "v${version}";
-    sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
+    sha256 = "1mvc6x5nn242z65pxv39ch71vaikgi89bb0sjbfy2jbw91vk41xa";
   };
 
   nativeBuildInputs = with python3Packages; [
@@ -53,7 +53,6 @@ in buildPythonApplication rec {
     pikepdf
     pillow
     reportlab
-    ruffus
     setuptools
     tqdm
   ];
@@ -71,8 +70,8 @@ in buildPythonApplication rec {
 
   postPatch = ''
     substituteInPlace src/ocrmypdf/leptonica.py \
-      --replace "ffi.dlopen(find_library('lept'))" \
-      'ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
+      --replace "lept = ffi.dlopen(_libpath)" \
+      'lept = ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
   '';
 
   # The tests take potentially 20+ minutes, depending on machine