depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-org-policy/default.nix
Default email 9543354213 Project import generated by Copybara.
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
2021-09-28 10:13:01 +02:00

27 lines
890 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, google-api-core, mock, proto-plus, protobuf, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-org-policy";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "e5489dffc6b6558125e548bc8c5be78f13d11bb9916470992816e6ed66a9d7fb";
};
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 ];
};
}