git.iko.soy/typeable/nixpkgs
on master help sign in
ocrmypdf: 9.0.3 -> 9.2.0
commit01956b5605006cf1d61f58a52a049a40c1ebedc8 authorMario Rodas <marsam@users.noreply.github.com> dateSun 15 Dec 2019, 19:21 (7 years ago) parent1581bc6
1 file changed+4−5
pkgs/tools/text/ocrmypdf/default.nix+4−5
pkgs/tools/text/ocrmypdf/default.nix+4−5
@@ -28,14 +28,14 @@ let
2828
2929in buildPythonApplication rec {
3030 pname = "ocrmypdf";
31− version = "9.0.3";
31+ version = "9.2.0";
3232 disabled = ! python3Packages.isPy3k;
3333
3434 src = fetchFromGitHub {
3535 owner = "jbarlow83";
3636 repo = "OCRmyPDF";
3737 rev = "v${version}";
38− sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
38+ sha256 = "1mvc6x5nn242z65pxv39ch71vaikgi89bb0sjbfy2jbw91vk41xa";
3939 };
4040
4141 nativeBuildInputs = with python3Packages; [
@@ -53,7 +53,6 @@ in buildPythonApplication rec {
5353 pikepdf
5454 pillow
5555 reportlab
56− ruffus
5756 setuptools
5857 tqdm
5958 ];
@@ -71,8 +70,8 @@ in buildPythonApplication rec {
7170
7271 postPatch = ''
7372 substituteInPlace src/ocrmypdf/leptonica.py \
74− --replace "ffi.dlopen(find_library('lept'))" \
75− 'ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
73+ --replace "lept = ffi.dlopen(_libpath)" \
74+ 'lept = ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
7675 '';
7776
7877 # The tests take potentially 20+ minutes, depending on machine