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
|
2023-01-11 07:51:40 +00:00
|
|
|
, grpcio
|
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
|
2023-01-11 07:51:40 +00:00
|
|
|
, protobuf
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigtable";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.19.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-EebMccj9DmrPj+/GCECLkqplq3bSmRkNqlI3gYq0qzo=";
|
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
|
|
|
proto-plus
|
2023-01-11 07:51:40 +00:00
|
|
|
protobuf
|
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
libcst = [
|
|
|
|
libcst
|
|
|
|
];
|
|
|
|
};
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
grpcio
|
2021-06-28 23:13:55 +00:00
|
|
|
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";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-bigtable/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-03-05 16:20:37 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|