From 58a788e78885b57747251455e1b5354087ba369a Mon Sep 17 00:00:00 2001 From: qbisi Date: Sun, 13 Apr 2025 22:37:27 +0800 Subject: [PATCH 1/2] python312Packages.mpi4py: remove unnecessary __darwinAllowLocalNetworking --- pkgs/development/python-modules/mpi4py/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index 13b538f12fa1..05208b24abda 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -36,8 +36,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "mpi4py" ]; - __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ pytestCheckHook mpiCheckPhaseHook From fdf3ff025124e116f9e9f81f6833091b5ae718e4 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 14 Apr 2025 13:59:14 +0300 Subject: [PATCH 2/2] python312Packages.mpi4py: disable failing tests with mpich --- pkgs/development/python-modules/mpi4py/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index 05208b24abda..5e1eecd4421a 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -40,6 +40,14 @@ buildPythonPackage rec { 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;