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