diff options
Diffstat (limited to 'pkgs/development/python-modules/mxnet/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mxnet/default.nix | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/mxnet/default.nix b/pkgs/development/python-modules/mxnet/default.nix index df08e56fbf33..3b9f692d7205 100644 --- a/pkgs/development/python-modules/mxnet/default.nix +++ b/pkgs/development/python-modules/mxnet/default.nix @@ -1,21 +1,35 @@ -{ lib -, buildPythonPackage -, pkgs -, requests -, numpy -, graphviz -, python -, isPy3k -, isPy310 +{ + lib, + buildPythonPackage, + pkgs, + setuptools, + distutils, + requests, + numpy, + graphviz, + python, + isPy3k, + isPy310, }: buildPythonPackage { inherit (pkgs.mxnet) pname version src; + pyproject = true; - format = "setuptools"; + build-system = [ setuptools ]; buildInputs = [ pkgs.mxnet ]; - propagatedBuildInputs = [ requests numpy graphviz ]; + + dependencies = [ + distutils + requests + numpy + graphviz + ]; + + pythonRelaxDeps = [ + "graphviz" + ]; LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ]; @@ -24,9 +38,7 @@ buildPythonPackage { 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" + --replace-fail "bool = onp.bool" "bool = bool" ''; preConfigure = '' |