wyoming-piper: 1.3.2 -> 1.4.0

https://github.com/rhasspy/wyoming-piper/blob/560927437c72eca4d334ca503d15863f0b42980d/CHANGELOG.md

+24 -44
-32
pkgs/tools/audio/wyoming/piper-entrypoint.patch
··· 1 - diff --git a/setup.py b/setup.py 2 - index 05e42c1..8347acb 100644 3 - --- a/setup.py 4 - +++ b/setup.py 5 - @@ -41,4 +41,9 @@ setup( 6 - "Programming Language :: Python :: 3.10", 7 - ], 8 - keywords="rhasspy wyoming piper", 9 - + entry_points={ 10 - + 'console_scripts': [ 11 - + 'wyoming-piper = wyoming_piper:__main__.run' 12 - + ] 13 - + } 14 - ) 15 - diff --git a/wyoming_piper/__main__.py b/wyoming_piper/__main__.py 16 - index ab1580b..4c0a143 100755 17 - --- a/wyoming_piper/__main__.py 18 - +++ b/wyoming_piper/__main__.py 19 - @@ -143,8 +143,12 @@ def get_description(voice_info: Dict[str, Any]): 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
+24 -12
pkgs/tools/audio/wyoming/piper.nix
··· 1 1 { lib 2 - , python3 3 - , fetchPypi 2 + , python3Packages 3 + , fetchFromGitHub 4 + , fetchpatch 4 5 }: 5 6 6 - python3.pkgs.buildPythonApplication rec { 7 + python3Packages.buildPythonApplication rec { 7 8 pname = "wyoming-piper"; 8 - version = "1.3.2"; 9 - format = "setuptools"; 9 + version = "1.4.0"; 10 + pyproject = true; 10 11 11 - src = fetchPypi { 12 - pname = "wyoming_piper"; 13 - inherit version; 14 - hash = "sha256-WyoHwIF3xC5nOa7iQ8/esfdwahbU6YJzK5G2Vi3mV4M="; 12 + src = fetchFromGitHub { 13 + owner = "rhasspy"; 14 + repo = "wyoming-piper"; 15 + # https://github.com/rhasspy/wyoming-piper/issues/3 16 + rev = "560927437c72eca4d334ca503d15863f0b42980d"; 17 + hash = "sha256-Q4S96zs856zXVAGo4mB466an60naHiS2S/qxYxPE4sI="; 15 18 }; 16 19 17 20 patches = [ 18 - ./piper-entrypoint.patch 21 + (fetchpatch { 22 + # add console script 23 + url = "https://github.com/rhasspy/wyoming-piper/commit/4c27fbd067fd543adede4626fc5868a3f2458734.patch"; 24 + hash = "sha256-YPjDjeY9RLsgCtbBZoNgPyQTv3rbCJGcqTNSSwiqqEE="; 25 + }) 19 26 ]; 20 27 21 - propagatedBuildInputs = with python3.pkgs; [ 28 + nativeBuildInputs = with python3Packages; [ 29 + setuptools 30 + ]; 31 + 32 + propagatedBuildInputs = with python3Packages; [ 22 33 wyoming 23 34 ]; 24 35 ··· 29 40 doCheck = false; 30 41 31 42 meta = with lib; { 43 + changelog = "https://github.com/rhasspy/wyoming-openwakeword/v${version}/master/CHANGELOG.md"; 32 44 description = "Wyoming Server for Piper"; 33 - homepage = "https://pypi.org/project/wyoming-piper/"; 45 + homepage = "https://github.com/rhasspy/wyoming-openwakeword"; 34 46 license = licenses.mit; 35 47 maintainers = with maintainers; [ hexa ]; 36 48 };