3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
27 lines
864 B
Nix
27 lines
864 B
Nix
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-org-policy";
|
|
version = "1.3.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-hZzujuHtj5g/dBJUhZBV4h8zJjtI1xitfjkcVzURfKU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ google-api-core proto-plus ];
|
|
|
|
# prevent google directory from shadowing google imports
|
|
preCheck = ''
|
|
rm -r google
|
|
'';
|
|
checkInputs = [ mock protobuf pytest-asyncio pytestCheckHook ];
|
|
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;
|
|
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
|
|
};
|
|
}
|