depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-bigtable/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, grpc-google-iam-v1
, libcst
, mock
, proto-plus
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-cloud-bigtable";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "b8472c91b05159f20121fcca6ebdc2a3b5648d68158ec747860914279b6b983b";
};
propagatedBuildInputs = [
google-api-core
google-cloud-core
grpc-google-iam-v1
libcst
proto-plus
];
checkInputs = [
mock
pytestCheckHook
];
checkPhase = ''
# Prevent google directory from shadowing google imports
rm -r google
'';
disabledTests = [
"policy"
];
pythonImportsCheck = [
"google.cloud.bigtable_admin_v2"
"google.cloud.bigtable_v2"
"google.cloud.bigtable"
];
meta = with lib; {
description = "Google Cloud Bigtable API client library";
homepage = "https://github.com/googleapis/python-bigtable";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}