python3Packages.tensorflow: 2.10.1 -> 2.11.0
https://github.com/tensorflow/tensorflow/releases/tag/v2.11.0 Drop dependency on tensorflow-io until we succeed in packaged it.
This commit is contained in:
parent
1fa67dd7fd
commit
fc4ae19ff1
1 changed files with 11 additions and 8 deletions
|
@ -74,7 +74,7 @@ let
|
||||||
|
|
||||||
tfFeature = x: if x then "1" else "0";
|
tfFeature = x: if x then "1" else "0";
|
||||||
|
|
||||||
version = "2.10.1";
|
version = "2.11.0";
|
||||||
variant = if cudaSupport then "-gpu" else "";
|
variant = if cudaSupport then "-gpu" else "";
|
||||||
pname = "tensorflow${variant}";
|
pname = "tensorflow${variant}";
|
||||||
|
|
||||||
|
@ -187,8 +187,8 @@ let
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tensorflow";
|
owner = "tensorflow";
|
||||||
repo = "tensorflow";
|
repo = "tensorflow";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-AYHUtJEXYZdVDigKZo7mQnV+PDeQg8mi45YH18qXHZA=";
|
hash = "sha256-OYh61/83yv+ycivylfdS8yFUIUAk8euAPvmfjPzldGs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# On update, it can be useful to steal the changes from gentoo
|
# On update, it can be useful to steal the changes from gentoo
|
||||||
|
@ -372,11 +372,11 @@ let
|
||||||
fetchAttrs = {
|
fetchAttrs = {
|
||||||
sha256 = {
|
sha256 = {
|
||||||
x86_64-linux = if cudaSupport
|
x86_64-linux = if cudaSupport
|
||||||
then "sha256-Q6a/Q4fr5cmqqkIoL8ZBJOKfF4NXnrhqFi2VgUpHC3E="
|
then "sha256-/wB9EpaDPg3TrD9qggdA4vPgzvmaKc6dDnLjoYTJC5o="
|
||||||
else "sha256-RBrmxWBn5Yj5fIHlPYXuWOFMTqDGbgk+IvUXk7kIXHM=";
|
else "sha256-QgOaUaq0V5HG9BOv9nEw8OTSlzINNFvbnyP8Vx+r9Xw=";
|
||||||
aarch64-linux = "sha256-MEkn2DplUW1R95q+A6uuIKNtMEBv08jU8kvTbMgIKJU=";
|
aarch64-linux = "sha256-zjnRtTG1j9cZTbP0Xnk2o/zWTNsP8T0n4Ai8IiAT3PE=";
|
||||||
x86_64-darwin = "sha256-bqZTu0AABeg6M2IVwlkUPuF8EMsbQXurcmjWZY0EN9E=";
|
x86_64-darwin = "sha256-RBLox9rzBKcZMm4NwnT7vQ/EjapWQJkqxuQ0LIdaM1E=";
|
||||||
aarch64-darwin = "sha256-q1PfVqyZ3KG65aKw6l9vhxCfPoxH6Nb5y1Eh9P8Ovqk=";
|
aarch64-darwin = "sha256-BRzh79lYvMHsUMk8BEYDLHTpnmeZ9+0lrDtj4XI1YY4=";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -419,6 +419,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/tensorflow/tensorflow/releases/tag/v${version}";
|
||||||
description = "Computation using data flow graphs for scalable machine learning";
|
description = "Computation using data flow graphs for scalable machine learning";
|
||||||
homepage = "http://tensorflow.org";
|
homepage = "http://tensorflow.org";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
@ -438,11 +439,13 @@ in buildPythonPackage {
|
||||||
src = bazel-build.python;
|
src = bazel-build.python;
|
||||||
|
|
||||||
# Adjust dependency requirements:
|
# Adjust dependency requirements:
|
||||||
|
# - Drop tensorflow-io dependency until we get it to build
|
||||||
# - Relax flatbuffers and gast version requirements
|
# - Relax flatbuffers and gast version requirements
|
||||||
# - The purpose of python3Packages.libclang is not clear at the moment and we don't have it packaged yet
|
# - The purpose of python3Packages.libclang is not clear at the moment and we don't have it packaged yet
|
||||||
# - keras and tensorlow-io-gcs-filesystem will be considered as optional for now.
|
# - keras and tensorlow-io-gcs-filesystem will be considered as optional for now.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i setup.py \
|
sed -i setup.py \
|
||||||
|
-e '/tensorflow-io-gcs-filesystem/,+1d' \
|
||||||
-e "s/'flatbuffers[^']*',/'flatbuffers',/" \
|
-e "s/'flatbuffers[^']*',/'flatbuffers',/" \
|
||||||
-e "s/'gast[^']*',/'gast',/" \
|
-e "s/'gast[^']*',/'gast',/" \
|
||||||
-e "/'libclang[^']*',/d" \
|
-e "/'libclang[^']*',/d" \
|
||||||
|
|
Loading…
Reference in a new issue