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