python312Packages.speechrecognition: add optional-dependencies
- update disabled
This commit is contained in:
parent
4d0027d56d
commit
d16747df56
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
version = "3.11.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Uberi";
|
||||
@ -47,6 +47,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
audio = [ pyaudio ];
|
||||
whisper-api = [ openai ];
|
||||
whisper-local = [
|
||||
openai-whisper
|
||||
@ -57,7 +58,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pocketsphinx
|
||||
] ++ optional-dependencies.whisper-local ++ optional-dependencies.whisper-api;
|
||||
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "speech_recognition" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user