1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 grpc-google-iam-v1,
7 mock,
8 proto-plus,
9 protobuf,
10 pytest-asyncio,
11 pytestCheckHook,
12 pythonOlder,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "google-cloud-iam-logging";
18 version = "1.3.3";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-99YYGGrI8zg+cwdVKqFVneL0jTzO7GJq91O/Kk0lGJM=";
26 };
27
28 nativeBuildInputs = [ setuptools ];
29
30 propagatedBuildInputs = [
31 google-api-core
32 grpc-google-iam-v1
33 proto-plus
34 protobuf
35 ] ++ google-api-core.optional-dependencies.grpc;
36
37 nativeCheckInputs = [
38 mock
39 pytestCheckHook
40 pytest-asyncio
41 ];
42
43 pythonImportsCheck = [
44 "google.cloud.iam_logging"
45 "google.cloud.iam_logging_v1"
46 ];
47
48 meta = with lib; {
49 description = "IAM Service Logging client library";
50 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-iam-logging";
51 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-iam-logging-v${version}/packages/google-cloud-iam-logging/CHANGELOG.md";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ fab ];
54 };
55}