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.17.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 pname = "google_cloud_language"; 23 inherit version; 24 hash = "sha256-vtaZaZXaIaJwl+XvOG9wEB6xw5beDdtNabhzbB91NXw="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 google-api-core 31 proto-plus 32 protobuf 33 ] ++ google-api-core.optional-dependencies.grpc; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-asyncio 38 ]; 39 40 pythonImportsCheck = [ 41 "google.cloud.language" 42 "google.cloud.language_v1" 43 "google.cloud.language_v1beta2" 44 ]; 45 46 meta = with lib; { 47 description = "Google Cloud Natural Language API client library"; 48 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-language"; 49 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-language-v${version}/packages/google-cloud-language/CHANGELOG.md"; 50 license = licenses.asl20; 51 maintainers = [ ]; 52 }; 53}