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