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