4 , googleapis-common-protos
9 buildPythonPackage rec {
10 pname = "tensorflow-metadata";
13 src = fetchFromGitHub {
16 rev = "refs/tags/v${version}";
17 hash = "sha256-ZfX25CaV+tZVdas+n7O6Gqv1GxOP1iwippIXxfhcOfg=";
25 substituteInPlace setup.py \
26 --replace 'protobuf>=3.13,<4' 'protobuf>=3.13'
29 # Default build pulls in Bazel + extra deps, given the actual build
30 # is literally three lines (see below) - replace it with custom build.
32 for proto in tensorflow_metadata/proto/v0/*.proto; do
33 protoc --python_out=. $proto
37 propagatedBuildInputs = [
39 googleapis-common-protos
46 pythonImportsCheck = [
51 description = "Standard representations for metadata that are useful when training machine learning models with TensorFlow";
52 homepage = "https://github.com/tensorflow/metadata";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ ndl ];