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.4.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-KYZvlpPqGy0zGDSZF3y6MsFZyb9M+88HGYp4NpPCiSY="; 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}