Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, enum34 5, google_api_core 6, pytest 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "google-cloud-dlp"; 12 version = "0.10.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "5cc7e40842b6c3dc586d04e3d2b2326b44afbe3896da6a30032d64650a7c6b00"; 17 }; 18 19 checkInputs = [ pytest mock ]; 20 propagatedBuildInputs = [ enum34 google_api_core ]; 21 22 checkPhase = '' 23 pytest tests/unit 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Cloud Data Loss Prevention (DLP) API API client library"; 28 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; 29 license = licenses.asl20; 30 maintainers = [ maintainers.costrouc ]; 31 }; 32}