diff --git a/pkgs/development/python-modules/mxnet/default.nix b/pkgs/development/python-modules/mxnet/default.nix index a9e778bdd8c..8b386a425a0 100644 --- a/pkgs/development/python-modules/mxnet/default.nix +++ b/pkgs/development/python-modules/mxnet/default.nix @@ -20,6 +20,9 @@ buildPythonPackage { doCheck = !isPy3k; postPatch = '' + # Required to support numpy >=1.24 where np.bool is removed in favor of just bool + substituteInPlace python/mxnet/numpy/utils.py \ + --replace "bool = onp.bool" "bool = bool" substituteInPlace python/setup.py \ --replace "graphviz<0.9.0," "graphviz" '';