diff --git a/pkgs/development/python-modules/rapidocr-onnxruntime/default.nix b/pkgs/development/python-modules/rapidocr-onnxruntime/default.nix index 6e4f2c5d9137..e0af42135d96 100644 --- a/pkgs/development/python-modules/rapidocr-onnxruntime/default.nix +++ b/pkgs/development/python-modules/rapidocr-onnxruntime/default.nix @@ -21,13 +21,13 @@ requests, }: let - version = "1.4.4"; + version = "2.1.0"; src = fetchFromGitHub { owner = "RapidAI"; repo = "RapidOCR"; tag = "v${version}"; - hash = "sha256-x0VELDKOffxbV3v0aDFJFuDC4YfsGM548XWgINmRc3M="; + hash = "sha256-4R2rOCfnhElII0+a5hnvbn+kKQLEtH1jBvfFdxpLEBk="; }; models = @@ -101,21 +101,10 @@ buildPythonPackage { pythonImportsCheck = [ "rapidocr_onnxruntime" ]; - nativeCheckInputs = [ - pytestCheckHook - requests - ]; - - # These are tests for different backends. - disabledTestPaths = [ - "tests/test_vino.py" - "tests/test_paddle.py" - ]; - - disabledTests = [ - # Needs Internet access - "test_long_img" - ]; + # As of version 2.1.0, 61 out of 70 tests require internet access. + # It's just not plausible to manually pick out ones that actually work + # in a hermetic build environment anymore :( + doCheck = false; meta = { # This seems to be related to https://github.com/microsoft/onnxruntime/issues/10038