1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-testutils
6, mock
7, proto-plus
8, protobuf
9, pytest-asyncio
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-dlp";
16 version = "3.12.1";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-KBqnGp56U2lGLo/2MWu5kfHr7pfIJJDT857+xnrK+iU=";
24 };
25
26 propagatedBuildInputs = [
27 google-api-core
28 proto-plus
29 protobuf
30 ] ++ google-api-core.optional-dependencies.grpc;
31
32 nativeCheckInputs = [
33 google-cloud-testutils
34 mock
35 pytestCheckHook
36 pytest-asyncio
37 ];
38
39 disabledTests = [
40 # Test requires credentials
41 "test_inspect_content"
42 ];
43
44 pythonImportsCheck = [
45 "google.cloud.dlp"
46 "google.cloud.dlp_v2"
47 ];
48
49 meta = with lib; {
50 description = "Cloud Data Loss Prevention (DLP) API API client library";
51 homepage = "https://github.com/googleapis/python-dlp";
52 changelog = "https://github.com/googleapis/python-dlp/blob/v${version}/CHANGELOG.md";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ SuperSandro2000 ];
55 };
56}