pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-speech / default.nix
blob443d3ebb48b07311428b3dfd6841744eedff8294
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,
15 buildPythonPackage rec {
16   pname = "google-cloud-speech";
17   version = "2.28.0";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     pname = "google_cloud_speech";
24     inherit version;
25     hash = "sha256-cGvKg647ru1cz1HM+7BkIqyUTPfjepPdm/KygwXqdEU=";
26   };
28   build-system = [ setuptools ];
30   dependencies = [
31     google-api-core
32     proto-plus
33     protobuf
34   ] ++ google-api-core.optional-dependencies.grpc;
36   nativeCheckInputs = [
37     mock
38     pytest-asyncio
39     pytestCheckHook
40   ];
42   disabledTests = [
43     # Test requires project ID
44     "test_list_phrase_set"
45   ];
47   pythonImportsCheck = [
48     "google.cloud.speech"
49     "google.cloud.speech_v1"
50     "google.cloud.speech_v1p1beta1"
51   ];
53   meta = with lib; {
54     description = "Google Cloud Speech API client library";
55     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-speech";
56     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-speech-v${version}/packages/google-cloud-speech/CHANGELOG.md";
57     license = licenses.asl20;
58     maintainers = [ ];
59   };