2018-11-02 19:03:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_core
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigtable";
|
2020-03-18 22:19:27 +00:00
|
|
|
version = "1.2.1";
|
2018-11-02 19:03:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-18 22:19:27 +00:00
|
|
|
sha256 = "1wwhjfhvz5g4720qcdrj01fqb8kh3n36sxjpz8pzwhc7z4z5srs8";
|
2018-11-02 19:03:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core google_cloud_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-03-18 22:19:27 +00:00
|
|
|
rm -r google
|
|
|
|
pytest tests/unit -k 'not policy'
|
2018-11-02 19:03:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud Bigtable API client library";
|
2020-03-18 22:19:27 +00:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:03:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|