blob: 60f9e3e11ae980f622a30ca06212562a66a15078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, google_cloud_core, google_cloud_testutils, grpcio, libcst
, mock, proto-plus, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-translate";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "ecdea3e176e80f606d08c4c7fd5acea6b3dd960f4b2e9a65951aaf800350a759";
};
disabled = pythonOlder "3.6";
# google_cloud_core[grpc] -> grpcio
propagatedBuildInputs =
[ google_api_core google_cloud_core grpcio libcst proto-plus ];
checkInputs = [ google_cloud_testutils mock pytest-asyncio pytestCheckHook ];
# test_http.py broken, fix not yet released
# https://github.com/googleapis/python-translate/pull/69
disabledTests = [
"test_build_api_url_w_extra_query_params"
"test_build_api_url_no_extra_query_params"
"test_build_api_url_w_custom_endpoint"
];
preCheck = ''
rm -r google
'';
meta = with stdenv.lib; {
description = "Google Cloud Translation API client library";
homepage = "https://github.com/googleapis/python-translate";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
|