Revert "Updating relax-dependencies.patch"

This reverts commit 43362bd872ee56f7c3c391e84d7bfaf900de7f93.

+17 -18
+1 -1
pkgs/development/python-modules/tensorflow/default.nix
··· 110 110 owner = "tensorflow"; 111 111 repo = "tensorflow"; 112 112 rev = "v${version}"; 113 - sha256 = "1jdw2i1rq06zqd6aabh7bbm0avsg4pygnfmd7gviv0blhih9054l"; 113 + sha256 = "0v5qfzkfj9p7z50kp6zfq584n4pzyvjhsajbf5mpydgw4zm7af13"; 114 114 }; 115 115 116 116 patches = [
+16 -17
pkgs/development/python-modules/tensorflow/relax-dependencies.patch
··· 1 1 diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py 2 - index 354657a7bfc..eac85d4dba0 100644 2 + index 65133afdafe..8ef6364ff7e 100644 3 3 --- a/tensorflow/tools/pip_package/setup.py 4 4 +++ b/tensorflow/tools/pip_package/setup.py 5 - @@ -78,24 +78,24 @@ REQUIRED_PACKAGES = [ 6 - # NOTE: As numpy has releases that break semver guarantees and several other 7 - # deps depend on numpy without an upper bound, we must install numpy before 8 - # everything else. 9 - - 'numpy ~= 1.19.2', 10 - + 'numpy >= 1.19.2', 11 - # Install other dependencies 5 + @@ -75,23 +75,23 @@ if '--project_name' in sys.argv: 6 + # comment the versioning scheme. 7 + # NOTE: Please add test only packages to `TEST_PACKAGES` below. 8 + REQUIRED_PACKAGES = [ 12 9 - 'absl-py ~= 0.10', 13 10 - 'astunparse ~= 1.6.3', 14 11 - 'flatbuffers ~= 1.12.0', 15 12 - 'google_pasta ~= 0.2', 16 - - 'h5py ~= 3.1.0', 13 + - 'h5py ~= 2.10.0', 17 14 - 'keras_preprocessing ~= 1.1.2', 15 + - 'numpy ~= 1.19.2', 18 16 - 'opt_einsum ~= 3.3.0', 19 17 + 'absl-py >= 0.10', 20 18 + 'astunparse >= 1.6.3', 21 19 + 'flatbuffers >= 1.12.0', 22 20 + 'google_pasta >= 0.2', 23 - + 'h5py >= 3.1.0', 21 + + 'h5py >= 2.10.0', 24 22 + 'keras_preprocessing >= 1.1.2', 23 + + 'numpy >= 1.19.1', 25 24 + 'opt_einsum >= 3.3.0', 26 25 'protobuf >= 3.9.2', 27 26 - 'six ~= 1.15.0', ··· 32 31 + 'six >= 1.15.0', 33 32 + 'termcolor >= 1.1.0', 34 33 + 'typing_extensions >= 3.7.4', 35 - + 'wheel >= 0.35', 34 + + 'wheel >= 0.34.2', 36 35 + 'wrapt >= 1.12.1', 37 - # These packages need to be pinned exactly as newer versions are 36 + # These packages needs to be pinned exactly as newer versions are 38 37 # incompatible with the rest of the ecosystem 39 - - 'gast == 0.4.0', 40 - + 'gast >= 0.4.0', 38 + - 'gast == 0.3.3', 39 + + 'gast >= 0.3.3', 41 40 # TensorFlow ecosystem packages that TF exposes API for 42 41 # These need to be in sync with the existing TF version 43 42 # They are updated during the release process 44 - @@ -127,7 +127,7 @@ if 'tf_nightly' in project_name: 43 + @@ -118,7 +118,7 @@ if 'tf_nightly' in project_name: 45 44 # BoringSSL support. 46 45 # See https://github.com/tensorflow/tensorflow/issues/17882. 47 46 if sys.byteorder == 'little': 48 - - REQUIRED_PACKAGES.append('grpcio ~= 1.34.0') 49 - + REQUIRED_PACKAGES.append('grpcio >= 1.34.0') 47 + - REQUIRED_PACKAGES.append('grpcio ~= 1.32.0') 48 + + REQUIRED_PACKAGES.append('grpcio >= 1.31.0') 50 49 51 50 52 51 # Packages which are only needed for testing code.