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.5.2"; 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-D0pIR1vQEt/7aIxMo0uDlxvt+fwS2DxCurU/lxMHAjo="; 21 }; 22 23 propagatedBuildInputs = [ 24 google-api-core 25 proto-plus 26 protobuf 27 ]; 28 29 checkInputs = [ 30 mock 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "google.cloud.compute" 37 "google.cloud.compute_v1" 38 ]; 39 40 # disable tests that require credentials 41 disabledTestPaths = [ 42 "tests/system/test_addresses.py" 43 "tests/system/test_instance_group.py" 44 "tests/system/test_pagination.py" 45 "tests/system/test_smoke.py" 46 ]; 47 48 meta = with lib; { 49 description = "API Client library for Google Cloud Compute"; 50 homepage = "https://github.com/googleapis/python-compute"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ jpetrucciani ]; 53 }; 54}