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