python312Packages.rapidocr-onnxruntime: 1.4.4 -> 2.1.0
This commit is contained in:
parent
69ea43926c
commit
f36ece2a47
@ -21,13 +21,13 @@
|
|||||||
requests,
|
requests,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
version = "1.4.4";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RapidAI";
|
owner = "RapidAI";
|
||||||
repo = "RapidOCR";
|
repo = "RapidOCR";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-x0VELDKOffxbV3v0aDFJFuDC4YfsGM548XWgINmRc3M=";
|
hash = "sha256-4R2rOCfnhElII0+a5hnvbn+kKQLEtH1jBvfFdxpLEBk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
models =
|
models =
|
||||||
@ -101,21 +101,10 @@ buildPythonPackage {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "rapidocr_onnxruntime" ];
|
pythonImportsCheck = [ "rapidocr_onnxruntime" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
# As of version 2.1.0, 61 out of 70 tests require internet access.
|
||||||
pytestCheckHook
|
# It's just not plausible to manually pick out ones that actually work
|
||||||
requests
|
# in a hermetic build environment anymore :(
|
||||||
];
|
doCheck = false;
|
||||||
|
|
||||||
# These are tests for different backends.
|
|
||||||
disabledTestPaths = [
|
|
||||||
"tests/test_vino.py"
|
|
||||||
"tests/test_paddle.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# Needs Internet access
|
|
||||||
"test_long_img"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
# This seems to be related to https://github.com/microsoft/onnxruntime/issues/10038
|
# This seems to be related to https://github.com/microsoft/onnxruntime/issues/10038
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user