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" ];