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.13.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-mFqptqEvHQAKNevzawDOfQsH0SCn9EanJ2js4vIpCGo="; 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 "test_list_dlp_jobs" 43 ]; 44 45 pythonImportsCheck = [ 46 "google.cloud.dlp" 47 "google.cloud.dlp_v2" 48 ]; 49 50 meta = with lib; { 51 description = "Cloud Data Loss Prevention (DLP) API API client library"; 52 homepage = "https://github.com/googleapis/python-dlp"; 53 changelog = "https://github.com/googleapis/python-dlp/blob/v${version}/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ ]; 56 }; 57}