Skip to content

Commit 79c840e

Browse files
authored
Merge pull request #233589 from wegank/dm-sonnet-fix
python310Packages.dm-sonnet: fix build
2 parents 0e3f4da + a5f795f commit 79c840e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkgs/development/python-modules/dm-sonnet/default.nix

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{ lib
2-
, absl-py
32
, buildPythonPackage
3+
, click
44
, dm-tree
55
, docutils
66
, etils
77
, fetchFromGitHub
8+
, fetchpatch
89
, numpy
910
, pythonOlder
1011
, tabulate
@@ -27,6 +28,14 @@ buildPythonPackage rec {
2728
hash = "sha256-YSMeH5ZTfP1OdLBepsxXAVczBG/ghSjCWjoz/I+TFl8=";
2829
};
2930

31+
patches = [
32+
(fetchpatch {
33+
name = "replace-np-bool-with-np-bool_.patch";
34+
url = "https://github.com/deepmind/sonnet/commit/df5d099d4557a9a81a0eb969e5a81ed917bcd612.patch";
35+
hash = "sha256-s7abl83osD4wa0ZhqgDyjqQ3gagwGYCdQifwFqhNp34=";
36+
})
37+
];
38+
3039
propagatedBuildInputs = [
3140
dm-tree
3241
etils
@@ -42,7 +51,9 @@ buildPythonPackage rec {
4251
};
4352

4453
nativeCheckInputs = [
54+
click
4555
docutils
56+
tensorflow
4657
tensorflow-datasets
4758
];
4859

0 commit comments

Comments
 (0)