depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-org-policy/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-org-policy";
version = "1.11.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "google_cloud_org_policy";
inherit version;
hash = "sha256-E+H/y5UGlWselMwoHU4B9APkmEeQnTLxhMelowEJsa8=";
};
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 = with lib; {
description = "Protobufs for Google Cloud Organization Policy";
homepage = "https://github.com/googleapis/python-org-policy";
changelog = "https://github.com/googleapis/python-org-policy/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
};
}