Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.49.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-HBZFJ5oUVS1PIS/WBm4Xt/D0S+OGuM7gV43mInN8Lv8="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 google-api-core 32 libcst 33 proto-plus 34 protobuf 35 ] ++ google-api-core.optional-dependencies.grpc; 36 37 nativeCheckInputs = [ 38 mock 39 pytest-asyncio 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # Test requires credentials 45 "test_list_clusters" 46 ]; 47 48 pythonImportsCheck = [ 49 "google.cloud.container" 50 "google.cloud.container_v1" 51 "google.cloud.container_v1beta1" 52 ]; 53 54 meta = with lib; { 55 description = "Google Container Engine API client library"; 56 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-container"; 57 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-container-v${version}/packages/google-cloud-container/CHANGELOG.md"; 58 license = licenses.asl20; 59 maintainers = [ ]; 60 }; 61}