pythonPackages.tensorflow: fix python<3.4 build

This was already added for the source build, but missing for the binary
build.
This commit is contained in:
Timo Kaufmann 2019-03-04 14:10:28 +01:00
parent 9e95109b89
commit af7455b1c8

View File

@ -55,7 +55,8 @@ in buildPythonPackage rec {
in fetchurl dls.${key};
propagatedBuildInputs = [ protobuf numpy termcolor grpcio six astor absl-py gast tensorflow-estimator tensorflow-tensorboard keras-applications keras-preprocessing ]
++ lib.optional (!isPy3k) mock;
++ lib.optional (!isPy3k) mock
++ lib.optionals (pythonOlder "3.4") [ backports_weakref ];
# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
# and the propageted input tensorflow-tensorboard which causes environment collisions.