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 committed Nov 4, 2024
1 parent cc275e6 commit a0df556
Showing 1 changed file with 4 additions and 2 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

0 comments on commit a0df556

Please sign in to comment.