Skip to content

Commit

Permalink
python312Packages.h5py-mpi: fix build by relaxing mpi4py dependency (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar authored Nov 5, 2024
2 parents 82717b4 + a0df556 commit e3a7cda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/h5py/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ buildPythonPackage rec {

pythonRelaxDeps = [ "mpi4py" ];

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

env = {
Expand Down
13 changes: 0 additions & 13 deletions pkgs/development/python-modules/h5py/mpi4py-requirement.patch

This file was deleted.

0 comments on commit e3a7cda

Please sign in to comment.