53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
google-api-core,
|
|
proto-plus,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "google-cloud-org-policy";
|
|
version = "1.16.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "google_cloud_org_policy";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-KleKj6JhG4pi/XAM82C/VndJED2nvK1+NzvT1lm7zpE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
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 ];
|
|
};
|
|
})
|