ocrmypdf: 9.0.3 -> 9.2.0
This commit is contained in:
parent
1581bc696a
commit
01956b5605
@ -28,14 +28,14 @@ let
|
|||||||
|
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
pname = "ocrmypdf";
|
pname = "ocrmypdf";
|
||||||
version = "9.0.3";
|
version = "9.2.0";
|
||||||
disabled = ! python3Packages.isPy3k;
|
disabled = ! python3Packages.isPy3k;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jbarlow83";
|
owner = "jbarlow83";
|
||||||
repo = "OCRmyPDF";
|
repo = "OCRmyPDF";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
|
sha256 = "1mvc6x5nn242z65pxv39ch71vaikgi89bb0sjbfy2jbw91vk41xa";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
nativeBuildInputs = with python3Packages; [
|
||||||
@ -53,7 +53,6 @@ in buildPythonApplication rec {
|
|||||||
pikepdf
|
pikepdf
|
||||||
pillow
|
pillow
|
||||||
reportlab
|
reportlab
|
||||||
ruffus
|
|
||||||
setuptools
|
setuptools
|
||||||
tqdm
|
tqdm
|
||||||
];
|
];
|
||||||
@ -71,8 +70,8 @@ in buildPythonApplication rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/ocrmypdf/leptonica.py \
|
substituteInPlace src/ocrmypdf/leptonica.py \
|
||||||
--replace "ffi.dlopen(find_library('lept'))" \
|
--replace "lept = ffi.dlopen(_libpath)" \
|
||||||
'ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
|
'lept = ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# The tests take potentially 20+ minutes, depending on machine
|
# The tests take potentially 20+ minutes, depending on machine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user