Loading pkgs/development/python-modules/speechrecognition/default.nix +17 −7 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, cacert, cohere, faster-whisper, flac, google-cloud-speech, Loading @@ -12,6 +13,7 @@ openai, pocketsphinx, pyaudio, pytest-httpserver, pytestCheckHook, requests, respx, Loading @@ -21,16 +23,16 @@ typing-extensions, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "speechrecognition"; version = "3.14.3"; version = "3.16.0"; pyproject = true; src = fetchFromGitHub { owner = "Uberi"; repo = "speech_recognition"; tag = version; hash = "sha256-g//KKxPRe1pWVJo7GsRNIV59r0J7XJEoXvH0tGuV3Jk="; tag = finalAttrs.version; hash = "sha256-EIDhWx1s1B0DX4Vmd/a8hRnTBgdBx9ALOonOWFPgUOg="; }; postPatch = '' Loading @@ -52,6 +54,7 @@ buildPythonPackage rec { optional-dependencies = { assemblyai = [ requests ]; audio = [ pyaudio ]; cohere = [ cohere ]; faster-whisper = [ faster-whisper ]; google-cloud = [ google-cloud-speech ]; groq = [ Loading @@ -67,15 +70,17 @@ buildPythonPackage rec { openai-whisper soundfile ]; # vosk = [ vosk ]; }; nativeCheckInputs = [ groq pytest-httpserver pytestCheckHook pocketsphinx respx ] ++ lib.concatAttrValues optional-dependencies; ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "speech_recognition" ]; Loading @@ -84,14 +89,19 @@ buildPythonPackage rec { "test_sphinx_keywords" ]; disabledTestPaths = [ # vosk is not available in nixpkgs "tests/recognizers/test_vosk.py" ]; meta = { description = "Speech recognition module for Python, supporting several engines and APIs, online and offline"; homepage = "https://github.com/Uberi/speech_recognition"; changelog = "https://github.com/Uberi/speech_recognition/releases/tag/${src.tag}"; changelog = "https://github.com/Uberi/speech_recognition/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ gpl2Only bsd3 ]; maintainers = with lib.maintainers; [ fab ]; }; } }) Loading
pkgs/development/python-modules/speechrecognition/default.nix +17 −7 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, cacert, cohere, faster-whisper, flac, google-cloud-speech, Loading @@ -12,6 +13,7 @@ openai, pocketsphinx, pyaudio, pytest-httpserver, pytestCheckHook, requests, respx, Loading @@ -21,16 +23,16 @@ typing-extensions, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "speechrecognition"; version = "3.14.3"; version = "3.16.0"; pyproject = true; src = fetchFromGitHub { owner = "Uberi"; repo = "speech_recognition"; tag = version; hash = "sha256-g//KKxPRe1pWVJo7GsRNIV59r0J7XJEoXvH0tGuV3Jk="; tag = finalAttrs.version; hash = "sha256-EIDhWx1s1B0DX4Vmd/a8hRnTBgdBx9ALOonOWFPgUOg="; }; postPatch = '' Loading @@ -52,6 +54,7 @@ buildPythonPackage rec { optional-dependencies = { assemblyai = [ requests ]; audio = [ pyaudio ]; cohere = [ cohere ]; faster-whisper = [ faster-whisper ]; google-cloud = [ google-cloud-speech ]; groq = [ Loading @@ -67,15 +70,17 @@ buildPythonPackage rec { openai-whisper soundfile ]; # vosk = [ vosk ]; }; nativeCheckInputs = [ groq pytest-httpserver pytestCheckHook pocketsphinx respx ] ++ lib.concatAttrValues optional-dependencies; ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "speech_recognition" ]; Loading @@ -84,14 +89,19 @@ buildPythonPackage rec { "test_sphinx_keywords" ]; disabledTestPaths = [ # vosk is not available in nixpkgs "tests/recognizers/test_vosk.py" ]; meta = { description = "Speech recognition module for Python, supporting several engines and APIs, online and offline"; homepage = "https://github.com/Uberi/speech_recognition"; changelog = "https://github.com/Uberi/speech_recognition/releases/tag/${src.tag}"; changelog = "https://github.com/Uberi/speech_recognition/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ gpl2Only bsd3 ]; maintainers = with lib.maintainers; [ fab ]; }; } })