{ lib, buildPythonPackage, fetchPypi, google-api-core, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, setuptools, }: buildPythonPackage (finalAttrs: { pname = "google-cloud-org-policy"; version = "1.17.0"; pyproject = true; src = fetchPypi { pname = "google_cloud_org_policy"; inherit (finalAttrs) version; hash = "sha256-93GJ7n9loo83VfhV9xC4tnuYYuKmtqk7B15vnak7/yA="; }; build-system = [ setuptools ]; pythonRelaxDeps = [ "protobuf" ]; dependencies = [ google-api-core proto-plus protobuf ] ++ google-api-core.optional-dependencies.grpc; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; # Prevent google directory from shadowing google imports preCheck = '' rm -r google ''; pythonImportsCheck = [ "google.cloud.orgpolicy" ]; meta = { description = "Python Client for Organization Policy"; homepage = "https://github.com/googleapis/google-cloud-python/blob/main/packages/${finalAttrs.pname}"; changelog = "https://github.com/googleapis/google-cloud-python/blob/${finalAttrs.pname}-v${finalAttrs.version}/packages/${finalAttrs.pname}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ austinbutler ]; }; })