1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 protobuf, 7 proto-plus, 8 pytestCheckHook, 9 pytest-asyncio, 10 pythonOlder, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-os-config"; 16 version = "1.20.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 pname = "google_cloud_os_config"; 23 inherit version; 24 hash = "sha256-15sKmKW9y3/JU7rTLRZJXYqxWdWvqIFmIqpXKo2tE8Q="; 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 pytest-asyncio 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "google.cloud.osconfig" ]; 41 42 disabledTests = [ 43 # Test requires a project ID 44 "test_patch_deployment" 45 "test_patch_job" 46 "test_list_patch_jobs" 47 ]; 48 49 meta = with lib; { 50 description = "Google Cloud OS Config API client library"; 51 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-os-config"; 52 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-os-config-v${version}/packages/google-cloud-os-config/CHANGELOG.md"; 53 license = licenses.asl20; 54 maintainers = [ ]; 55 }; 56}