1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 mock,
7 proto-plus,
8 protobuf,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-websecurityscanner";
17 version = "1.17.2";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 pname = "google_cloud_websecurityscanner";
24 inherit version;
25 hash = "sha256-EWTO9yWJUHe+mELBp1/CxB6OCaS0woZtooKFAGH4yGY=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 google-api-core
32 proto-plus
33 protobuf
34 ] ++ google-api-core.optional-dependencies.grpc;
35
36 nativeCheckInputs = [
37 mock
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "google.cloud.websecurityscanner_v1alpha"
44 "google.cloud.websecurityscanner_v1beta"
45 ];
46
47 meta = with lib; {
48 description = "Google Cloud Web Security Scanner API client library";
49 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-websecurityscanner";
50 changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-websecurityscanner-v${version}/packages/google-cloud-websecurityscanner";
51 license = licenses.asl20;
52 maintainers = [ ];
53 };
54}