13 inherit (pkgs.mxnet) pname version src;
15 format = "setuptools";
17 buildInputs = [ pkgs.mxnet ];
18 propagatedBuildInputs = [ requests numpy graphviz ];
20 LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ];
25 # Required to support numpy >=1.24 where np.bool is removed in favor of just bool
26 substituteInPlace python/mxnet/numpy/utils.py \
27 --replace "bool = onp.bool" "bool = bool"
28 substituteInPlace python/setup.py \
29 --replace "graphviz<0.9.0," "graphviz"
38 ln -s ${pkgs.mxnet}/lib/libmxnet.so $out/${python.sitePackages}/mxnet
41 meta = pkgs.mxnet.meta // {
42 broken = (pkgs.mxnet.broken or false) || (isPy310 && pkgs.mxnet.cudaSupport);