Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, proto-plus 6, protobuf 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-org-policy"; 14 version = "1.8.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-JVXRVq7yrRLj15ZMKVCBvCsrRP8KcRj9XNvfeH0rXVc="; 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 # Prevent google directory from shadowing google imports 36 preCheck = '' 37 rm -r google 38 ''; 39 40 pythonImportsCheck = [ 41 "google.cloud.orgpolicy" 42 ]; 43 44 meta = with lib; { 45 description = "Protobufs for Google Cloud Organization Policy"; 46 homepage = "https://github.com/googleapis/python-org-policy"; 47 changelog = "https://github.com/googleapis/python-org-policy/blob/v${version}/CHANGELOG.md"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ austinbutler SuperSandro2000 ]; 50 }; 51}