tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.mxnet: depends on distutils
Robert Schütz
1 year ago
5cd694ac
3e46dff7
+12
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
mxnet
default.nix
+12
-5
pkgs/development/python-modules/mxnet/default.nix
···
2
2
lib,
3
3
buildPythonPackage,
4
4
pkgs,
5
5
+
setuptools,
6
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
17
+
pyproject = true;
15
18
16
16
-
format = "setuptools";
19
19
+
build-system = [ setuptools ];
17
20
18
21
buildInputs = [ pkgs.mxnet ];
19
19
-
propagatedBuildInputs = [
22
22
+
23
23
+
dependencies = [
24
24
+
distutils
20
25
requests
21
26
numpy
22
27
graphviz
23
28
];
24
29
30
30
+
pythonRelaxDeps = [
31
31
+
"graphviz"
32
32
+
];
33
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
32
-
--replace "bool = onp.bool" "bool = bool"
33
33
-
substituteInPlace python/setup.py \
34
34
-
--replace "graphviz<0.9.0," "graphviz"
41
41
+
--replace-fail "bool = onp.bool" "bool = bool"
35
42
'';
36
43
37
44
preConfigure = ''