From 627246f4f923490ffe152f5dcaee268d9eda0bca Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Fri, 28 Oct 2022 11:08:47 -0700 Subject: [PATCH] python3Packages.tensorflow-bin: relax protobuf, tensorboard version constraints to fix build --- pkgs/development/python-modules/tensorflow/bin.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index ca3c818d34af..96f54632069e 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -98,14 +98,16 @@ in buildPythonPackage { ( cd unpacked/tensorflow* # Adjust dependency requirements: - # - Relax flatbuffers, gast and tensorflow-estimator version requirements that don't match what we have packaged + # - Relax flatbuffers, gast, protobuf, tensorboard, and tensorflow-estimator version requirements that don't match what we have packaged # - 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. sed -i *.dist-info/METADATA \ -e "/Requires-Dist: flatbuffers/d" \ -e "/Requires-Dist: gast/d" \ - -e "/Requires-Dist: libclang/d" \ -e "/Requires-Dist: keras/d" \ + -e "/Requires-Dist: libclang/d" \ + -e "/Requires-Dist: protobuf/d" \ + -e "/Requires-Dist: tensorboard/d" \ -e "/Requires-Dist: tensorflow-estimator/d" \ -e "/Requires-Dist: tensorflow-io-gcs-filesystem/d" )