Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-bigtable / default.nix
blobdd6485aa5d24ad5c4726934476f1f1c0fe4f5432
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   google-cloud-core,
7   grpcio,
8   grpc-google-iam-v1,
9   libcst,
10   mock,
11   proto-plus,
12   protobuf,
13   pytestCheckHook,
14   pythonOlder,
15   setuptools,
18 buildPythonPackage rec {
19   pname = "google-cloud-bigtable";
20   version = "2.23.1";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-FHWiK/zhY7XELN9O717AUyPuozWFUpT5zk4j+qIk8Cg=";
28   };
30   build-system = [ setuptools ];
32   dependencies = [
33     google-api-core
34     google-cloud-core
35     grpc-google-iam-v1
36     proto-plus
37     protobuf
38   ] ++ google-api-core.optional-dependencies.grpc;
40   passthru.optional-dependencies = {
41     libcst = [ libcst ];
42   };
44   nativeCheckInputs = [
45     grpcio
46     mock
47     pytestCheckHook
48   ];
50   checkPhase = ''
51     # Prevent google directory from shadowing google imports
52     rm -r google
53   '';
55   disabledTests = [ "policy" ];
57   pythonImportsCheck = [
58     "google.cloud.bigtable_admin_v2"
59     "google.cloud.bigtable_v2"
60     "google.cloud.bigtable"
61   ];
63   meta = with lib; {
64     description = "Google Cloud Bigtable API client library";
65     homepage = "https://github.com/googleapis/python-bigtable";
66     changelog = "https://github.com/googleapis/python-bigtable/blob/v${version}/CHANGELOG.md";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ ];
69   };