2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, grpc_google_iam_v1
|
2021-01-09 10:05:03 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigtable";
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "90bd53a19c33c34101b8567c82a6dc0386af4118d70e1ad69b49375358a21aa6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core google-cloud-core ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
rm -r google
|
|
|
|
pytest tests/unit -k 'not policy'
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|