diff --git a/pkgs/development/python-modules/nbmake/default.nix b/pkgs/development/python-modules/nbmake/default.nix index 42cd4fec4c5a2..f6780ba38981f 100644 --- a/pkgs/development/python-modules/nbmake/default.nix +++ b/pkgs/development/python-modules/nbmake/default.nix @@ -13,7 +13,6 @@ pygments, # tests - pytest-xdist, pytestCheckHook, typing-extensions, }: @@ -45,12 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "nbmake" ]; - # tests are prone to race conditions under high parallelism - # https://github.com/treebeardtech/nbmake/issues/129 - pytestFlagsArray = [ "--maxprocesses=4" ]; - nativeCheckInputs = [ - pytest-xdist pytestCheckHook typing-extensions ]; @@ -59,6 +53,13 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; + disabledTests = [ + # depends on pytest-xdist that is not added, as + # tests are prone to race conditions under parallelism, they sometimes hang indefinitely + # https://github.com/treebeardtech/nbmake/issues/129 + "test_when_parallel_passing_nbs_then_ok" + ]; + __darwinAllowLocalNetworking = true; meta = {