blob: f0aa00153a76886818bccedf8cc1b69f25135582 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
google-api-core,
grpc-google-iam-v1,
mock,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-kms";
version = "3.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "googleapis";
repo = "google-cloud-python";
tag = "google-cloud-kms-v${version}";
hash = "sha256-/ZBpSn6bZpzFgIg3LmfV7xMowh9Gpslw0fcN021jAow=";
};
sourceRoot = "${src.name}/packages/google-cloud-kms";
build-system = [ setuptools ];
dependencies = [
grpc-google-iam-v1
google-api-core
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
mock
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Disable tests that need credentials
"test_list_global_key_rings"
# Tests require PROJECT_ID
"test_list_ekm_connections"
];
pythonImportsCheck = [
"google.cloud.kms"
"google.cloud.kms_v1"
];
passthru.updateScript = gitUpdater {
rev-prefix = "google-cloud-kms-v";
};
# picks the wrong tag
passthru.skipBulkUpdate = true;
meta = {
description = "Cloud Key Management Service (KMS) API API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-kms";
changelog = "https://github.com/googleapis/google-cloud-python/blob/${src.tag}/packages/google-cloud-kms/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.sarahec ];
};
}
|