2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-09 10:05:03 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2021-08-18 13:19:15 +00:00
|
|
|
, grpc-google-iam-v1
|
2021-06-28 23:13:55 +00:00
|
|
|
, libcst
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
2021-06-28 23:13:55 +00:00
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigtable";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-zqyLJX3ufjIpdiS7Qw85R6K/2p2m1KbYtmH2DH/r0nE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
2021-08-18 13:19:15 +00:00
|
|
|
grpc-google-iam-v1
|
2021-06-28 23:13:55 +00:00
|
|
|
libcst
|
|
|
|
proto-plus
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
# Prevent google directory from shadowing google imports
|
2020-04-24 23:36:52 +00:00
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
"policy"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.bigtable_admin_v2"
|
|
|
|
"google.cloud.bigtable_v2"
|
|
|
|
"google.cloud.bigtable"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Google Cloud Bigtable API client library";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-bigtable";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|