From 42802d8a6dfe48d0dab1e686814b7dab97606aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 17 Mar 2023 12:02:02 -0700 Subject: [PATCH] python310Packages.labelbox: fix tests --- pkgs/development/python-modules/labelbox/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix index cac243e72b1d..f5c9bdfed9e2 100644 --- a/pkgs/development/python-modules/labelbox/default.nix +++ b/pkgs/development/python-modules/labelbox/default.nix @@ -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" ];