about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dm-sonnet
diff options
context:
space:
mode:
authorClaudio Bley <cbley@exa-online.de>2020-11-26 22:21:44 +0100
committerClaudio Bley <cbley@exa-online.de>2021-01-29 21:53:23 +0100
commit00fdb28e49aa913ee029971c15e4e3a04c21cb79 (patch)
treebff0ad993b9e0469e2d627024c9da65b5a2221eb /pkgs/development/python-modules/dm-sonnet
parent34a21d6f217317d8f9765d4985b0f5f98f5cf349 (diff)
pythonPackages36.{dm-sonnet, tensorflow-probability}: Use bazel 0.26 for building
* use the same bazel version as tensorflow 1
  (this makes using the `incompatible_disable_deprecated_attr_params` flag unnecessary)
Diffstat (limited to 'pkgs/development/python-modules/dm-sonnet')
-rw-r--r--pkgs/development/python-modules/dm-sonnet/default.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/dm-sonnet/default.nix b/pkgs/development/python-modules/dm-sonnet/default.nix
index 627f8eedaeb12..f465ac200d424 100644
--- a/pkgs/development/python-modules/dm-sonnet/default.nix
+++ b/pkgs/development/python-modules/dm-sonnet/default.nix
@@ -1,5 +1,6 @@
 { lib
 , fetchFromGitHub
+, bazel_0_26
 , buildBazelPackage
 , buildPythonPackage
 , git
@@ -19,6 +20,8 @@ let
 
   # first build all binaries and generate setup.py using bazel
   bazel-build = buildBazelPackage {
+    bazel = bazel_0_26;
+
     name = "dm-sonnet-bazel-${version}";
 
     src = fetchFromGitHub {
@@ -36,14 +39,9 @@ let
     bazelTarget = ":install";
 
     fetchAttrs = {
-      sha256 = "1dka5nap3d28n18pn3wp5xsi4x3z02h1j8rcjdvi3y6dbqjwdw0v";
+      sha256 = "09dzxs2v5wpiaxrz7qj257q1fbx0gxwbk0jyx58n81m5kys7yj9k";
     };
 
-    bazelFlags = [
-      # https://github.com/deepmind/sonnet/issues/134
-      "--incompatible_disable_deprecated_attr_params=false"
-    ];
-
     buildAttrs = {
       preBuild = ''
         patchShebangs .