python3Packages.tesserocr: relax cython constraint

This commit is contained in:
Martin Weinelt
2025-08-09 19:05:18 +02:00
parent 1febb22583
commit 60972c3901
@@ -44,6 +44,9 @@ buildPythonPackage rec {
# https://github.com/sirfz/tesserocr/issues/314
postPatch = ''
sed -i '/allheaders.h/a\ pass\n\ncdef extern from "leptonica/pix_internal.h" nogil:' tesserocr/tesseract.pxd
substituteInPlace setup.py \
--replace-fail "Cython>=0.23,<3.1.0" Cython
'';
build-system = [