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