python310Packages.labelbox: fix tests
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
, geojson
|
||||
, google-api-core
|
||||
, imagesize
|
||||
, nbconvert
|
||||
, nbformat
|
||||
, ndjson
|
||||
, numpy
|
||||
, opencv
|
||||
@@ -42,7 +44,7 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "-s -vv -x --reruns 5 --reruns-delay 10 --durations=20" "-s -vv -x --durations=20"
|
||||
--replace "--reruns 5 --reruns-delay 10" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -79,6 +81,8 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
nbconvert
|
||||
nbformat
|
||||
pytest-cases
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.data;
|
||||
@@ -90,6 +94,11 @@ buildPythonPackage rec {
|
||||
"tests/data"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# see tox.ini
|
||||
"-k 'not notebooks'"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"labelbox"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user