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