1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, protobuf
9, pytest-asyncio
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-container";
16 version = "2.33.0";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-dpJmSe7NjmmDqd0GrLxm1e/VFvo64+ECNRVwuRpjrmI=";
24 };
25
26 propagatedBuildInputs = [
27 google-api-core
28 libcst
29 proto-plus
30 protobuf
31 ] ++ google-api-core.optional-dependencies.grpc;
32
33 nativeCheckInputs = [
34 mock
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 disabledTests = [
40 # Test requires credentials
41 "test_list_clusters"
42 ];
43
44 pythonImportsCheck = [
45 "google.cloud.container"
46 "google.cloud.container_v1"
47 "google.cloud.container_v1beta1"
48 ];
49
50 meta = with lib; {
51 description = "Google Container Engine API client library";
52 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-container";
53 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-container-v${version}/packages/google-cloud-container/CHANGELOG.md";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ ];
56 };
57}