2021-08-07 01:49:59 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }:
|
2020-10-13 04:56:31 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-org-policy";
|
2021-08-07 01:49:59 +01:00
|
|
|
version = "1.0.1";
|
2020-10-13 04:56:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-07 01:49:59 +01:00
|
|
|
sha256 = "12qwiqb7xrnq42z777j5nxdgka3vv411l9cngka6cr6mx4s83c9l";
|
2020-10-13 04:56:31 +01:00
|
|
|
};
|
|
|
|
|
2021-04-05 04:01:35 +01:00
|
|
|
propagatedBuildInputs = [ google-api-core proto-plus ];
|
2020-10-13 04:56:31 +01:00
|
|
|
|
2021-08-07 01:49:59 +01:00
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
checkInputs = [ mock protobuf pytest-asyncio pytestCheckHook ];
|
2020-10-13 04:56:31 +01: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-05 14:52:26 +00:00
|
|
|
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
|
2020-10-13 04:56:31 +01:00
|
|
|
};
|
|
|
|
}
|