depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-bigtable/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, grpc-google-iam-v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-bigtable";
version = "2.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-TUMgrv1JNt8h6DzCNtk0Fm4LQFC73/FNfpgTs9jhkYs=";
};
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 = with maintainers; [ costrouc ];
};
}