1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }: 2 3buildPythonPackage rec { 4 pname = "google-cloud-org-policy"; 5 version = "1.2.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "cdb2d6878c426ed34af8950b052845a76b0f5fab3f96a2ec5dc80be994ca5cf8"; 10 }; 11 12 propagatedBuildInputs = [ google-api-core proto-plus ]; 13 14 # prevent google directory from shadowing google imports 15 preCheck = '' 16 rm -r google 17 ''; 18 checkInputs = [ mock protobuf pytest-asyncio pytestCheckHook ]; 19 pythonImportsCheck = [ "google.cloud.orgpolicy" ]; 20 21 meta = with lib; { 22 description = "Protobufs for Google Cloud Organization Policy."; 23 homepage = "https://github.com/googleapis/python-org-policy"; 24 license = licenses.asl20; 25 maintainers = with maintainers; [ austinbutler SuperSandro2000 ]; 26 }; 27}