1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, google-api-core 6, google-cloud-core 7, google-cloud-testutils 8, libcst 9, mock 10, proto-plus 11, pytest-asyncio 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-translate"; 16 version = "3.6.1"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "38772cc60ef4315d25a7dbeef5ddab9e75674722cb4500bc69b295e5d0af6a97"; 21 }; 22 23 propagatedBuildInputs = [ 24 google-api-core 25 google-cloud-core 26 libcst 27 proto-plus 28 ]; 29 30 checkInputs = [ 31 google-cloud-testutils 32 mock 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 preCheck = '' 38 # prevent shadowing imports 39 rm -r google 40 ''; 41 42 pythonImportsCheck = [ 43 "google.cloud.translate" 44 "google.cloud.translate_v2" 45 "google.cloud.translate_v3" 46 "google.cloud.translate_v3beta1" 47 ]; 48 49 meta = with lib; { 50 description = "Google Cloud Translation API client library"; 51 homepage = "https://github.com/googleapis/python-translate"; 52 license = licenses.asl20; 53 maintainers = with maintainers; [ SuperSandro2000 ]; 54 }; 55}