Skip to content

Commit 8076db3

Browse files
committed
ocrmypdf: 9.8.2 -> 10.2.0
1 parent 98ba751 commit 8076db3

1 file changed

Lines changed: 5 additions & 22 deletions

File tree

pkgs/tools/text/ocrmypdf/default.nix

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ let
2929
in
3030
buildPythonApplication rec {
3131
pname = "ocrmypdf";
32-
version = "9.8.2";
32+
version = "10.2.0";
3333
disabled = ! python3Packages.isPy3k;
3434

3535
src = fetchFromGitHub {
3636
owner = "jbarlow83";
3737
repo = "OCRmyPDF";
3838
rev = "v${version}";
39-
sha256 = "0zff9gsbfaf72p8zbjamn6513czpr7papyh1jy0fz1z2a9h7ya0g";
39+
sha256 = "1dkxhy3bjl48948jj2k6d684sd76xw1q427qc4hmxncr0wxj0ljp";
4040
};
4141

4242
nativeBuildInputs = with python3Packages; [
@@ -49,8 +49,10 @@ buildPythonApplication rec {
4949
propagatedBuildInputs = with python3Packages; [
5050
cffi
5151
chardet
52+
coloredlogs
5253
img2pdf
5354
pdfminer
55+
pluggy
5456
pikepdf
5557
pillow
5658
reportlab
@@ -66,7 +68,7 @@ buildPythonApplication rec {
6668
pytestcov
6769
pytestrunner
6870
python-xmp-toolkit
69-
setuptools
71+
pytestCheckHook
7072
] ++ runtimeDeps;
7173

7274
patches = [
@@ -76,25 +78,6 @@ buildPythonApplication rec {
7678
})
7779
];
7880

79-
# The tests take potentially 20+ minutes, depending on machine
80-
doCheck = false;
81-
82-
# These tests fail and it might be upstream problem... or packaging. :)
83-
# development is happening on macos and the pinned test versions are
84-
# significantly newer than nixpkgs has. Program still works...
85-
# (to the extent I've used it) -- Kiwi
86-
checkPhase = ''
87-
export HOME=$TMPDIR
88-
pytest -k 'not test_force_ocr_on_pdf_with_no_images \
89-
and not test_tesseract_crash \
90-
and not test_tesseract_crash_autorotate \
91-
and not test_ghostscript_pdfa_failure \
92-
and not test_gs_render_failure \
93-
and not test_gs_raster_failure \
94-
and not test_bad_utf8 \
95-
and not test_old_unpaper'
96-
'';
97-
9881
makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];
9982

10083
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)