diff --git a/pkgs/development/python-modules/dm-sonnet/default.nix b/pkgs/development/python-modules/dm-sonnet/default.nix index 627f8eedaeb1..f465ac200d42 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 . diff --git a/pkgs/development/python-modules/tensorflow-probability/default.nix b/pkgs/development/python-modules/tensorflow-probability/default.nix index 91880562eb3a..1daaac6ae7eb 100644 --- a/pkgs/development/python-modules/tensorflow-probability/default.nix +++ b/pkgs/development/python-modules/tensorflow-probability/default.nix @@ -1,6 +1,7 @@ { lib , fetchFromGitHub , fetchpatch +, bazel_0_26 , buildBazelPackage , buildPythonPackage , python @@ -26,6 +27,8 @@ let # first build all binaries and generate setup.py using bazel bazel-wheel = buildBazelPackage { + bazel = bazel_0_26; + name = "${pname}-${version}-py2.py3-none-any.whl"; src = fetchFromGitHub {