python3Packages.tesserocr: revert 2.8.0 -> 2.9.2, fix build (#497237)

This commit is contained in:
Kerstin
2026-03-08 00:18:34 +00:00
committed by GitHub
@@ -22,21 +22,18 @@
buildPythonPackage rec {
pname = "tesserocr";
version = "2.9.2";
version = "2.8.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-L6H+PHlXXW/VtSd4Xnc/oZsFXwf5Iv6yrJ1sHmIjNSI=";
hash = "sha256-vlGNGxtf9UwRqtoeD9EpQlCepwWB4KizmipHOgstvTY=";
};
patches = [
# Fix a broken test. The issue has been reported upstream at
# https://github.com/sirfz/tesserocr/issues/363
# Check the status of the issue before removing this patch at the next
# update.
# Backport https://github.com/sirfz/tesserocr/pull/364 to fix tests
(fetchpatch {
url = "https://github.com/sirfz/tesserocr/commit/78d9e8187bd4d282d572bd5221db2c69e560e017.patch";
url = "https://github.com/sirfz/tesserocr/commit/853a885d0154a0345e1ea7db80febe04893a3da8.patch";
hash = "sha256-s51s9EIV9AZT6UoqwTuQ8lOjToqwIIUkDLjsvCsyYFU=";
})
];