Skip to content

Commit e3a7cda

Browse files
authored
python312Packages.h5py-mpi: fix build by relaxing mpi4py dependency (#353635)
2 parents 82717b4 + a0df556 commit e3a7cda

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

pkgs/development/python-modules/h5py/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ buildPythonPackage rec {
3535

3636
pythonRelaxDeps = [ "mpi4py" ];
3737

38-
# avoid strict pinning of numpy, can't be replaced with pythonRelaxDepsHook,
39-
# see: https://github.com/NixOS/nixpkgs/issues/327941
38+
# avoid strict pinning of numpy and mpi4py, can't be replaced with
39+
# pythonRelaxDepsHook, see: https://github.com/NixOS/nixpkgs/issues/327941
4040
postPatch = ''
4141
substituteInPlace pyproject.toml \
4242
--replace-fail "numpy >=2.0.0, <3" "numpy"
43+
substituteInPlace setup.py \
44+
--replace-fail "mpi4py ==3.1.6" "mpi4py"
4345
'';
4446

4547
env = {

pkgs/development/python-modules/h5py/mpi4py-requirement.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)