python312Packages.tensorflow-metadata: 1.15.0 -> 1.16.1 (#358589)
This commit is contained in:
@@ -4,28 +4,24 @@
|
||||
fetchFromGitHub,
|
||||
googleapis-common-protos,
|
||||
protobuf,
|
||||
setuptools,
|
||||
lib,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tensorflow-metadata";
|
||||
version = "1.15.0";
|
||||
format = "setuptools";
|
||||
version = "1.16.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tensorflow";
|
||||
repo = "metadata";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-f3bkDTy45uwqVJaXFb0Dmaj9U1lJTP5R5Ej1yzobEV4=";
|
||||
hash = "sha256-MP5P4kFACT1guZVU3f9YrnKeQaUK0Tnu7edKRy4yvlM=";
|
||||
};
|
||||
|
||||
patches = [ ./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 = ''
|
||||
@@ -34,7 +30,9 @@ buildPythonPackage rec {
|
||||
done
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
absl-py
|
||||
googleapis-common-protos
|
||||
protobuf
|
||||
|
||||
Reference in New Issue
Block a user