2021-08-08 23:34:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-org-policy";
|
2021-10-17 09:34:42 +00:00
|
|
|
version = "1.2.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-17 09:34:42 +00:00
|
|
|
sha256 = "c6811f8bde6019b18f5f0d154078000405af6fd38836713c05cbb9c1512f181a";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core proto-plus ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
checkInputs = [ mock protobuf pytest-asyncio pytestCheckHook ];
|
2020-10-16 20:44:37 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.orgpolicy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Protobufs for Google Cloud Organization Policy.";
|
|
|
|
homepage = "https://github.com/googleapis/python-org-policy";
|
|
|
|
license = licenses.asl20;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|