1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, google-api-core 6, mock 7, proto-plus 8, protobuf 9, pytest-asyncio 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-compute"; 15 version = "1.14.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-rNmHZH18gmqpe0QYFBx0Dq1eiBHTNJMV8viaMMAcf0s="; 23 }; 24 25 propagatedBuildInputs = [ 26 google-api-core 27 proto-plus 28 protobuf 29 ] ++ google-api-core.optional-dependencies.grpc; 30 31 nativeCheckInputs = [ 32 mock 33 pytest-asyncio 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "google.cloud.compute" 39 "google.cloud.compute_v1" 40 ]; 41 42 # disable tests that require credentials 43 disabledTestPaths = [ 44 "tests/system/test_addresses.py" 45 "tests/system/test_instance_group.py" 46 "tests/system/test_pagination.py" 47 "tests/system/test_smoke.py" 48 ]; 49 50 meta = with lib; { 51 description = "API Client library for Google Cloud Compute"; 52 homepage = "https://github.com/googleapis/python-compute"; 53 changelog = "https://github.com/googleapis/python-compute/blob/v${version}/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ jpetrucciani ]; 56 }; 57}