From 2676a42a5be9e283139dc6d87c39b017019603cf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 19 Sep 2022 04:17:37 +0200 Subject: [PATCH] python3Packages.tensorflow-metadata: relax protobuf constraint --- .../python-modules/tensorflow-metadata/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/tensorflow-metadata/default.nix b/pkgs/development/python-modules/tensorflow-metadata/default.nix index 5204e2158dc7..994d821d9a25 100644 --- a/pkgs/development/python-modules/tensorflow-metadata/default.nix +++ b/pkgs/development/python-modules/tensorflow-metadata/default.nix @@ -21,6 +21,11 @@ buildPythonPackage rec { ./build.patch ]; + postPatch = '' + substituteInPlace setup.py \ + --replace 'protobuf>=3.13,<4' 'protobuf>=3.13' + ''; + # Default build pulls in Bazel + extra deps, given the actual build # is literally three lines (see below) - replace it with custom build. preBuild = ''