ocrmypdf: 8.2.3 -> 9.0.3
Version bump and bug fix Fixes runtime dependencies ( #67497 ) and the version bump fixed other issues
This commit is contained in:
parent
e19054ab3c
commit
82c4218fe9
@ -28,14 +28,14 @@ let
|
|||||||
|
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
pname = "ocrmypdf";
|
pname = "ocrmypdf";
|
||||||
version = "8.2.3";
|
version = "9.0.3";
|
||||||
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 = "1ldlyhxkav34y9d7g2kx3d4p26c2b82vnwi0ywnfynb16sav36d5";
|
sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
nativeBuildInputs = with python3Packages; [
|
||||||
@ -51,12 +51,14 @@ in buildPythonApplication rec {
|
|||||||
img2pdf
|
img2pdf
|
||||||
pdfminer
|
pdfminer
|
||||||
pikepdf
|
pikepdf
|
||||||
|
pillow
|
||||||
reportlab
|
reportlab
|
||||||
ruffus
|
ruffus
|
||||||
|
setuptools
|
||||||
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = with python3Packages; [
|
checkInputs = with python3Packages; [
|
||||||
hocr-tools
|
|
||||||
pypdf2
|
pypdf2
|
||||||
pytest
|
pytest
|
||||||
pytest-helpers-namespace
|
pytest-helpers-namespace
|
||||||
@ -67,7 +69,6 @@ in buildPythonApplication rec {
|
|||||||
setuptools
|
setuptools
|
||||||
] ++ runtimeDeps;
|
] ++ runtimeDeps;
|
||||||
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/ocrmypdf/leptonica.py \
|
substituteInPlace src/ocrmypdf/leptonica.py \
|
||||||
--replace "ffi.dlopen(find_library('lept'))" \
|
--replace "ffi.dlopen(find_library('lept'))" \
|
||||||
@ -93,6 +94,8 @@ in buildPythonApplication rec {
|
|||||||
and not test_old_unpaper'
|
and not test_old_unpaper'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/jbarlow83/OCRmyPDF";
|
homepage = "https://github.com/jbarlow83/OCRmyPDF";
|
||||||
description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";
|
description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user