uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
{ absl-py
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, googleapis-common-protos
|
||||
, protobuf
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tensorflow-metadata";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tensorflow";
|
||||
repo = "metadata";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-IaLr6XYEy1EcyWi5GWzDFa7TeVZ59v8Wj5qkNdVbOqw=";
|
||||
};
|
||||
|
||||
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
|
||||
protobuf
|
||||
];
|
||||
|
||||
# has no tests
|
||||
doCheck = false;
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue