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