Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, protobuf 6, proto-plus 7, pytestCheckHook 8, pytest-asyncio 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-os-config"; 14 version = "1.15.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-OaF1pzRY5k5SvXNCxTviP/2lhC7Up+oXaQB14f2tGj8="; 22 }; 23 24 propagatedBuildInputs = [ 25 google-api-core 26 proto-plus 27 protobuf 28 ] ++ google-api-core.optional-dependencies.grpc; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "google.cloud.osconfig" 37 ]; 38 39 disabledTests = [ 40 "test_patch_deployment" 41 "test_patch_job" 42 ]; 43 44 meta = with lib; { 45 description = "Google Cloud OS Config API client library"; 46 homepage = "https://github.com/googleapis/python-os-config"; 47 changelog = "https://github.com/googleapis/python-os-config/blob/v${version}/CHANGELOG.md"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ SuperSandro2000 ]; 50 }; 51}