python312Packages.mxnet: depends on distutils

+12 -5
+12 -5
pkgs/development/python-modules/mxnet/default.nix
··· 2 lib, 3 buildPythonPackage, 4 pkgs, 5 requests, 6 numpy, 7 graphviz, ··· 12 13 buildPythonPackage { 14 inherit (pkgs.mxnet) pname version src; 15 16 - format = "setuptools"; 17 18 buildInputs = [ pkgs.mxnet ]; 19 - propagatedBuildInputs = [ 20 requests 21 numpy 22 graphviz 23 ]; 24 25 LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ]; 26 27 doCheck = !isPy3k; ··· 29 postPatch = '' 30 # Required to support numpy >=1.24 where np.bool is removed in favor of just bool 31 substituteInPlace python/mxnet/numpy/utils.py \ 32 - --replace "bool = onp.bool" "bool = bool" 33 - substituteInPlace python/setup.py \ 34 - --replace "graphviz<0.9.0," "graphviz" 35 ''; 36 37 preConfigure = ''
··· 2 lib, 3 buildPythonPackage, 4 pkgs, 5 + setuptools, 6 + distutils, 7 requests, 8 numpy, 9 graphviz, ··· 14 15 buildPythonPackage { 16 inherit (pkgs.mxnet) pname version src; 17 + pyproject = true; 18 19 + build-system = [ setuptools ]; 20 21 buildInputs = [ pkgs.mxnet ]; 22 + 23 + dependencies = [ 24 + distutils 25 requests 26 numpy 27 graphviz 28 ]; 29 30 + pythonRelaxDeps = [ 31 + "graphviz" 32 + ]; 33 + 34 LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ]; 35 36 doCheck = !isPy3k; ··· 38 postPatch = '' 39 # Required to support numpy >=1.24 where np.bool is removed in favor of just bool 40 substituteInPlace python/mxnet/numpy/utils.py \ 41 + --replace-fail "bool = onp.bool" "bool = bool" 42 ''; 43 44 preConfigure = ''