Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, fetchPypi, google-api-core, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "google-cloud-org-policy"; version = "1.19.0"; pyproject = true;
src = fetchPypi { pname = "google_cloud_org_policy"; inherit (finalAttrs) version; hash = "sha256-Vt0V/3Nsg1jTxnwzuiaDmwnHoehx1ray2iyx4b7NciQ="; };
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 ]; };})