diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index 13b538f12fa1..5e1eecd4421a 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -36,12 +36,18 @@ buildPythonPackage rec { pythonImportsCheck = [ "mpi4py" ]; - __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ pytestCheckHook mpiCheckPhaseHook ]; + disabledTestPaths = lib.optionals (mpi.pname == "mpich") [ + # These tests from some reason cause pytest to crash, and therefor it is + # hard to debug them. Upstream mentions these tests to raise issues in + # https://github.com/mpi4py/mpi4py/issues/418 but the workaround suggested + # there (setting MPI4PY_RC_RECV_MPROBE=0) doesn't work. + "test/test_util_pool.py" + "demo/futures/test_futures.py" + ]; passthru = { inherit mpi;