1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 grpc-google-iam-v1,
7 proto-plus,
8 protobuf,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-securitycenter";
17 version = "1.38.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 pname = "google_cloud_securitycenter";
24 inherit version;
25 hash = "sha256-XsR+gNtFCWhe0PEmaS8lIgGl0+ri7MR/omK+bch4Too=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 grpc-google-iam-v1
32 google-api-core
33 proto-plus
34 protobuf
35 ] ++ google-api-core.optional-dependencies.grpc;
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-asyncio
40 ];
41
42 pythonImportsCheck = [
43 "google.cloud.securitycenter"
44 "google.cloud.securitycenter_v1"
45 "google.cloud.securitycenter_v1beta1"
46 "google.cloud.securitycenter_v1p1beta1"
47 ];
48
49 meta = with lib; {
50 description = "Cloud Security Command Center API API client library";
51 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securitycenter";
52 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-securitycenter-v${version}/packages/google-cloud-securitycenter/CHANGELOG.md";
53 license = licenses.asl20;
54 maintainers = [ ];
55 };
56}