Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, google-api-core
6, libcst
7, mock
8, protobuf
9, proto-plus
10, pytest-asyncio
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-websecurityscanner";
16 version = "1.9.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-fUnoV5I9kMwC9zUdsHit6MbIYFV+3E+GT76vwEmzNNs=";
24 };
25
26 propagatedBuildInputs = [
27 google-api-core
28 libcst
29 protobuf
30 proto-plus
31 ];
32
33 checkInputs = [
34 mock
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "google.cloud.websecurityscanner_v1alpha"
41 "google.cloud.websecurityscanner_v1beta"
42 ];
43
44 meta = with lib; {
45 description = "Google Cloud Web Security Scanner API client library";
46 homepage = "https://github.com/googleapis/python-websecurityscanner";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ SuperSandro2000 ];
49 };
50}