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.21.0"; 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-NKdb/E9CO1Zp98kHcvqYNIr0L27C+ijQ1ulT3p58qSk="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 google-api-core 31 proto-plus 32 protobuf 33 ] 34 ++ google-api-core.optional-dependencies.grpc; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "google.cloud.osconfig" ]; 42 43 disabledTests = [ 44 # Test requires a project ID 45 "test_patch_deployment" 46 "test_patch_job" 47 "test_list_patch_jobs" 48 ]; 49 50 meta = with lib; { 51 description = "Google Cloud OS Config API client library"; 52 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-os-config"; 53 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-os-config-v${version}/packages/google-cloud-os-config/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = [ ]; 56 }; 57}