wyoming-faster-whisper: 1.0.1 -> 1.0.2

+20 -44
-32
pkgs/tools/audio/wyoming/faster-whisper-entrypoint.patch
··· 1 - diff --git a/setup.py b/setup.py 2 - index 04eedbc..ee0b495 100644 3 - --- a/setup.py 4 - +++ b/setup.py 5 - @@ -35,4 +35,9 @@ setup( 6 - "Programming Language :: Python :: 3.10", 7 - ], 8 - keywords="rhasspy wyoming whisper", 9 - + entry_points={ 10 - + 'console_scripts': [ 11 - + 'wyoming-faster-whisper = wyoming_faster_whisper:__main__.run' 12 - + ] 13 - + } 14 - ) 15 - diff --git a/wyoming_faster_whisper/__main__.py b/wyoming_faster_whisper/__main__.py 16 - index 8a5039f..bd1e7b6 100755 17 - --- a/wyoming_faster_whisper/__main__.py 18 - +++ b/wyoming_faster_whisper/__main__.py 19 - @@ -131,8 +131,12 @@ async def main() -> None: 20 - 21 - # ----------------------------------------------------------------------------- 22 - 23 - +def run(): 24 - + asyncio.run(main()) 25 - + 26 - + 27 - if __name__ == "__main__": 28 - try: 29 - - asyncio.run(main()) 30 - + run() 31 - except KeyboardInterrupt: 32 - pass
···
+20 -12
pkgs/tools/audio/wyoming/faster-whisper.nix
··· 1 { lib 2 , python3 3 - , fetchPypi 4 , fetchpatch 5 }: 6 7 python3.pkgs.buildPythonApplication rec { 8 pname = "wyoming-faster-whisper"; 9 - version = "1.0.1"; 10 - format = "setuptools"; 11 12 - src = fetchPypi { 13 - pname = "wyoming_faster_whisper"; 14 - inherit version; 15 - hash = "sha256-wo62m8gIP9hXihkd8j2haVvz3TlJv3m5WWthTPFwesk="; 16 }; 17 18 patches = [ 19 - ./faster-whisper-entrypoint.patch 20 21 # fix model retrieval on python3.11+ 22 (fetchpatch { 23 - url = "https://github.com/rhasspy/rhasspy3/commit/ea55a309e55384e6fd8c9f19534622968f8ed95b.patch"; 24 - hash = "sha256-V9WXKE3+34KGubBS23vELTHjqU2RCTk3sX8GTjmH+AA="; 25 - stripLen = 4; 26 }) 27 ]; 28 29 propagatedBuildInputs = with python3.pkgs; [ ··· 41 42 meta = with lib; { 43 description = "Wyoming Server for Faster Whisper"; 44 - homepage = "https://pypi.org/project/wyoming-faster-whisper/"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ hexa ]; 47 };
··· 1 { lib 2 , python3 3 + , fetchFromGitHub 4 , fetchpatch 5 }: 6 7 python3.pkgs.buildPythonApplication rec { 8 pname = "wyoming-faster-whisper"; 9 + version = "1.0.2"; 10 + pyproject = true; 11 12 + src = fetchFromGitHub { 13 + owner = "rhasspy"; 14 + repo = "wyoming-faster-whisper"; 15 + rev = "refs/tags/v${version}"; 16 + hash = "sha256-mKnWab3i6lEnCBbO3ucNmWIxaaWwQagzfDhaD1U3qow="; 17 }; 18 19 patches = [ 20 + # add wyoming-faster-whisper executable 21 + (fetchpatch { 22 + url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/a5715197abab34253d2864ed8cf406210834b4ec.patch"; 23 + hash = "sha256-a9gmXMngwXo9ZJDbxl/pPzm6WSy5XeGbz/Xncj7bOog="; 24 + }) 25 26 # fix model retrieval on python3.11+ 27 (fetchpatch { 28 + url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/d5229df2c3af536013bc931c1ed7cc239b618208.patch"; 29 + hash = "sha256-CMpOJ1qSPcdtX2h2ecGmQ/haus/gaSH8r/PCFsMChRY="; 30 }) 31 + ]; 32 + 33 + nativeBuildInputs = with python3.pkgs; [ 34 + setuptools 35 ]; 36 37 propagatedBuildInputs = with python3.pkgs; [ ··· 49 50 meta = with lib; { 51 description = "Wyoming Server for Faster Whisper"; 52 + homepage = "https://github.com/rhasspy/wyoming-faster-whisper"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ hexa ]; 55 };