nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-securitycenter";
16 version = "1.42.0";
17 pyproject = true;
18
19 src = fetchPypi {
20 pname = "google_cloud_securitycenter";
21 inherit version;
22 hash = "sha256-zwCV0I0vBIgvVRXG31JX8M00u8mzXGMCw/5QpEMKa+Q=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 grpc-google-iam-v1
29 google-api-core
30 proto-plus
31 protobuf
32 ]
33 ++ google-api-core.optional-dependencies.grpc;
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 pytest-asyncio
38 ];
39
40 pythonImportsCheck = [
41 "google.cloud.securitycenter"
42 "google.cloud.securitycenter_v1"
43 "google.cloud.securitycenter_v1beta1"
44 "google.cloud.securitycenter_v1p1beta1"
45 ];
46
47 meta = {
48 description = "Cloud Security Command Center API API client library";
49 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securitycenter";
50 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-securitycenter-v${version}/packages/google-cloud-securitycenter/CHANGELOG.md";
51 license = lib.licenses.asl20;
52 maintainers = [ ];
53 };
54}