From eeb23d8a44efc7b0293b8c941d554f13f3ebc607 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 30 Jul 2024 15:29:36 +0200 Subject: [PATCH] python312Packages.h5py: mark as broken on x86_64-darwin --- pkgs/development/python-modules/h5py/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix index 6a1dd926f07a..80eb055a1d6d 100644 --- a/pkgs/development/python-modules/h5py/default.nix +++ b/pkgs/development/python-modules/h5py/default.nix @@ -14,6 +14,7 @@ pytestCheckHook, pytest-mpi, cached-property, + stdenv, }: assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi; @@ -46,9 +47,7 @@ buildPythonPackage rec { substituteInPlace pyproject.toml \ --replace-fail "numpy >=2.0.0rc1" "numpy" ''; - pythonRelaxDeps = [ - "mpi4py" - ]; + pythonRelaxDeps = [ "mpi4py" ]; HDF5_DIR = "${hdf5}"; HDF5_MPI = if mpiSupport then "ON" else "OFF"; @@ -100,5 +99,9 @@ buildPythonPackage rec { homepage = "http://www.h5py.org/"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ doronbehar ]; + # When importing `h5py` during the build, we get: + # + # ValueError: Not a datatype (not a datatype) + broken = stdenv.isDarwin && stdenv.isx86_64; }; }