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