python310Packages.google-cloud-org-policy: 1.4.1 -> 1.5.0

Changelog: https://github.com/googleapis/python-org-policy/blob/v1.5.0/CHANGELOG.md
This commit is contained in:
Fabian Affolter 2022-12-28 16:56:47 +01:00
parent bdf27d0ec3
commit 75825e1cfc

View file

@ -1,25 +1,48 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }:
{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, proto-plus
, protobuf
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-org-policy";
version = "1.4.1";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-KYZvlpPqGy0zGDSZF3y6MsFZyb9M+88HGYp4NpPCiSY=";
hash = "sha256-fA8O/pdUNgY3dwj17D7aoHUjzaXpMmL3w0TU6A6gqHo=";
};
propagatedBuildInputs = [ google-api-core proto-plus ];
propagatedBuildInputs = [
google-api-core
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
# prevent google directory from shadowing google imports
checkInputs = [
pytest-asyncio
pytestCheckHook
];
# Prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
checkInputs = [ mock protobuf pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "google.cloud.orgpolicy" ];
pythonImportsCheck = [
"google.cloud.orgpolicy"
];
meta = with lib; {
description = "Protobufs for Google Cloud Organization Policy.";
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;