python3Packages.tensorflow-metadata: init at 1.5.0 (#153767)
This commit is contained in:
parent
292e674bb1
commit
0701f2904b
3 changed files with 72 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 7a09b2f..94c5aa6 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -125,7 +125,7 @@ setup(
|
||||
],
|
||||
namespace_packages=[],
|
||||
install_requires=[
|
||||
- 'absl-py>=0.9,<0.13',
|
||||
+ 'absl-py>=0.9',
|
||||
'googleapis-common-protos>=1.52.0,<2',
|
||||
'protobuf>=3.13,<4',
|
||||
],
|
||||
@@ -137,8 +137,5 @@ setup(
|
||||
long_description_content_type='text/markdown',
|
||||
keywords='tensorflow metadata tfx',
|
||||
download_url='https://github.com/tensorflow/metadata/tags',
|
||||
- requires=[],
|
||||
- cmdclass={
|
||||
- 'build': _BuildCommand,
|
||||
- 'bazel_build': _BazelBuildCommand,
|
||||
- })
|
||||
+ requires=[]
|
||||
+ )
|
|
@ -0,0 +1,46 @@
|
|||
{ absl-py
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, googleapis-common-protos
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tensorflow-metadata";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tensorflow";
|
||||
repo = "metadata";
|
||||
rev = "v${version}";
|
||||
sha256 = "17p74k6rwswpmj7m16cw9hdam6b4m7v5bahirmc2l1kwfvrn4w33";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./build.patch
|
||||
];
|
||||
|
||||
# Default build pulls in Bazel + extra deps, given the actual build
|
||||
# is literally three lines (see below) - replace it with custom build.
|
||||
preBuild = ''
|
||||
for proto in tensorflow_metadata/proto/v0/*.proto; do
|
||||
protoc --python_out=. $proto
|
||||
done
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
absl-py
|
||||
googleapis-common-protos
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"tensorflow_metadata"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Standard representations for metadata that are useful when training machine learning models with TensorFlow";
|
||||
homepage = "https://github.com/tensorflow/metadata";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ndl ];
|
||||
};
|
||||
}
|
|
@ -9553,6 +9553,8 @@ in {
|
|||
|
||||
tensorflow-estimator = callPackage ../development/python-modules/tensorflow-estimator { };
|
||||
|
||||
tensorflow-metadata = callPackage ../development/python-modules/tensorflow-metadata { };
|
||||
|
||||
tensorflow-probability = callPackage ../development/python-modules/tensorflow-probability { };
|
||||
|
||||
tensorflow = self.tensorflow-build;
|
||||
|
|
Loading…
Reference in a new issue