python310Packages.mxnet: add numpy >=1.24 compatibility patch

This commit is contained in:
oddlama 2023-07-29 13:28:48 +02:00
parent 3d0ab76d81
commit 2e83201310
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -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"
'';