diff --git a/pkgs/development/python-modules/tesserocr/default.nix b/pkgs/development/python-modules/tesserocr/default.nix index baf9dde1289b..0d3cd209f038 100644 --- a/pkgs/development/python-modules/tesserocr/default.nix +++ b/pkgs/development/python-modules/tesserocr/default.nix @@ -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="; }) ];