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.29.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 pname = "google_cloud_dlp"; 25 inherit version; 26 hash = "sha256-FbNmneFjhZmqq17EMeNsiOSCq98+JODhAJDEzHabLiA="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 google-api-core 33 proto-plus 34 protobuf 35 ] ++ google-api-core.optional-dependencies.grpc; 36 37 nativeCheckInputs = [ 38 google-cloud-testutils 39 mock 40 pytestCheckHook 41 pytest-asyncio 42 ]; 43 44 disabledTests = [ 45 # Tests require credentials 46 "test_inspect_content" 47 "test_list_dlp_jobs" 48 ]; 49 50 pythonImportsCheck = [ 51 "google.cloud.dlp" 52 "google.cloud.dlp_v2" 53 ]; 54 55 meta = with lib; { 56 description = "Cloud Data Loss Prevention (DLP) API API client library"; 57 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dlp"; 58 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dlp-v${version}/packages/google-cloud-dlp/CHANGELOG.md"; 59 license = licenses.asl20; 60 maintainers = [ ]; 61 }; 62}