Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-language / default.nix
blob54397f68cd8faedc5918dc868a93b2e83cf99a26
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , proto-plus
6 , protobuf
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "google-cloud-language";
14   version = "2.11.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-XxhECfBAwMcwV8JhbmvS6G5FrrZGGA0ZwYnfSqPQLbo=";
22   };
24   propagatedBuildInputs = [
25     google-api-core
26     proto-plus
27     protobuf
28   ] ++ google-api-core.optional-dependencies.grpc;
30   nativeCheckInputs = [
31     pytestCheckHook
32     pytest-asyncio
33   ];
35   pythonImportsCheck = [
36     "google.cloud.language"
37     "google.cloud.language_v1"
38     "google.cloud.language_v1beta2"
39   ];
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   };