Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-org-policy / default.nix
blobd7365d31aa0694a2852fe055e9b55c6c339527ef
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , proto-plus
6 , protobuf
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools
13 buildPythonPackage rec {
14   pname = "google-cloud-org-policy";
15   version = "1.11.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-3BJDTwbIDhscHDR8rcjLQP/JYZrktcW+tcK9WFyV2X8=";
23   };
25   build-system = [
26     setuptools
27   ];
29   dependencies = [
30     google-api-core
31     proto-plus
32     protobuf
33   ] ++ google-api-core.optional-dependencies.grpc;
35   nativeCheckInputs = [
36     pytest-asyncio
37     pytestCheckHook
38   ];
40   # Prevent google directory from shadowing google imports
41   preCheck = ''
42     rm -r google
43   '';
45   pythonImportsCheck = [
46     "google.cloud.orgpolicy"
47   ];
49   meta = with lib; {
50     description = "Protobufs for Google Cloud Organization Policy";
51     homepage = "https://github.com/googleapis/python-org-policy";
52     changelog = "https://github.com/googleapis/python-org-policy/blob/v${version}/CHANGELOG.md";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ austinbutler ];
55   };