Skip to content

Commit

Permalink
python310Packages.mxnet: add numpy >=1.24 compatibility patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Jul 28, 2023
1 parent 78faafa commit efe1f12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/mxnet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'';
Expand Down

0 comments on commit efe1f12

Please sign in to comment.