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.17.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-YMUEBj8c154KA5Y/cm1gbypDxkfY4ncCq5wbym5rS9s="; 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/python-dlp"; 57 changelog = "https://github.com/googleapis/python-dlp/blob/v${version}/CHANGELOG.md"; 58 license = licenses.asl20; 59 maintainers = with maintainers; [ ]; 60 }; 61}