From 3f2710502ee915ba66a95ae87cc7ca0386132f66 Mon Sep 17 00:00:00 2001 From: qbisi Date: Thu, 17 Apr 2025 03:08:09 +0800 Subject: [PATCH] python312Packages.mpi4py: convert dependency mpi to python module --- pkgs/development/python-modules/mpi4py/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index 5e1eecd4421a..eb2e0aafd749 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -5,6 +5,7 @@ cython, setuptools, mpi, + toPythonModule, pytestCheckHook, mpiCheckPhaseHook, }: @@ -31,7 +32,9 @@ buildPythonPackage rec { ]; dependencies = [ - mpi + # Use toPythonModule so that also the mpi executables will be propagated to + # generated Python environment. + (toPythonModule mpi) ]; pythonImportsCheck = [ "mpi4py" ];