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