1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-language";
15 version = "2.6.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-KAZmikDsTmNarRo9fxrTR5EtGfSYm1i4rP1iX8pa6Zo=";
23 };
24
25 propagatedBuildInputs = [
26 google-api-core
27 libcst
28 proto-plus
29 ];
30
31 checkInputs = [
32 mock
33 pytestCheckHook
34 pytest-asyncio
35 ];
36
37 pythonImportsCheck = [
38 "google.cloud.language"
39 "google.cloud.language_v1"
40 "google.cloud.language_v1beta2"
41 ];
42
43 meta = with lib; {
44 description = "Google Cloud Natural Language API client library";
45 homepage = "https://github.com/googleapis/python-language";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ SuperSandro2000 ];
48 };
49}