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