16 inherit (pkgs.mxnet) pname version src;
19 build-system = [ setuptools ];
21 buildInputs = [ pkgs.mxnet ];
35 LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ];
40 # Required to support numpy >=1.24 where np.bool is removed in favor of just bool
41 substituteInPlace python/mxnet/numpy/utils.py \
42 --replace-fail "bool = onp.bool" "bool = bool"
51 ln -s ${pkgs.mxnet}/lib/libmxnet.so $out/${python.sitePackages}/mxnet
54 meta = pkgs.mxnet.meta // {
55 broken = (pkgs.mxnet.broken or false) || (isPy310 && pkgs.mxnet.cudaSupport);