diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-03-01 09:48:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 09:48:04 +0100 |
commit | 76a6ac14e48ff112383812d12ba358c3790fbc80 (patch) | |
tree | b0e58a956d9d6810228198962457bf6ac858682d /pkgs/development/python-modules/google-cloud-speech | |
parent | ab03df769c2aed7b5d7b543cc237dec4a3b35f4c (diff) | |
download | nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar.gz nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar.bz2 nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar.lz nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar.xz nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.tar.zst nixpkgs-76a6ac14e48ff112383812d12ba358c3790fbc80.zip |
python3Packages.google-cloud-speech: disable on older Python releases
Diffstat (limited to 'pkgs/development/python-modules/google-cloud-speech')
-rw-r--r-- | pkgs/development/python-modules/google-cloud-speech/default.nix | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/google-cloud-speech/default.nix b/pkgs/development/python-modules/google-cloud-speech/default.nix index 0382674b0a5..097da842100 100644 --- a/pkgs/development/python-modules/google-cloud-speech/default.nix +++ b/pkgs/development/python-modules/google-cloud-speech/default.nix @@ -7,25 +7,37 @@ , proto-plus , pytestCheckHook , pytest-asyncio +, pythonOlder }: buildPythonPackage rec { pname = "google-cloud-speech"; version = "2.13.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-NO2oxVszbm2KYiN2NCn3edIyBx+E++sttJTgZd/yXzQ="; + hash = "sha256-NO2oxVszbm2KYiN2NCn3edIyBx+E++sttJTgZd/yXzQ="; }; - propagatedBuildInputs = [ libcst google-api-core proto-plus ]; + propagatedBuildInputs = [ + libcst + google-api-core + proto-plus + ]; - checkInputs = [ mock pytestCheckHook pytest-asyncio ]; + checkInputs = [ + mock + pytestCheckHook + pytest-asyncio + ]; - pytestFlagsArray = [ - # requrire credentials - "--ignore=tests/system/gapic/v1/test_system_speech_v1.py" - "--ignore=tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py" + disabledTestPaths = [ + # Requrire credentials + "tests/system/gapic/v1/test_system_speech_v1.py" + "tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py" ]; pythonImportsCheck = [ |