python312Packages.mxnet: depends on distutils

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