1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, pytest-asyncio
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-iam";
15 version = "2.12.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-/lBwhUR+z0Ydr9LNS4AWxYmeWOUgvQS1G7Orb2sI+v8=";
23 };
24
25 propagatedBuildInputs = [
26 google-api-core
27 libcst
28 proto-plus
29 ] ++ google-api-core.optional-dependencies.grpc;
30
31 nativeCheckInputs = [
32 mock
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "google.cloud.iam_credentials"
39 "google.cloud.iam_credentials_v1"
40 ];
41
42 meta = with lib; {
43 description = "IAM Service Account Credentials API client library";
44 homepage = "https://github.com/googleapis/python-iam";
45 changelog = "https://github.com/googleapis/python-iam/releases/tag/v${version}";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ austinbutler ];
48 };
49}