about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2024-03-10 23:23:04 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2024-03-23 23:28:47 +0100
commit2148c8bfaa23488c19ed922f8c9cb616b5b77435 (patch)
tree53813301e87aed5fd682158bc48333c776197932
parentc34939d424d5c8f8f32d7894163524bca591f587 (diff)
downloadnixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar.gz
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar.bz2
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar.lz
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar.xz
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.tar.zst
nixlib-2148c8bfaa23488c19ed922f8c9cb616b5b77435.zip
wyoming-faster-whisper: 1.1.0 -> 2.0.0
https://github.com/rhasspy/wyoming-faster-whisper/releases/tag/v2.0.0
-rw-r--r--pkgs/tools/audio/wyoming/faster-whisper.nix25
1 files changed, 8 insertions, 17 deletions
diff --git a/pkgs/tools/audio/wyoming/faster-whisper.nix b/pkgs/tools/audio/wyoming/faster-whisper.nix
index bbef9e081310..a40657bdf5f6 100644
--- a/pkgs/tools/audio/wyoming/faster-whisper.nix
+++ b/pkgs/tools/audio/wyoming/faster-whisper.nix
@@ -1,30 +1,21 @@
 { lib
-, python3
+, python3Packages
 , fetchFromGitHub
-, fetchpatch
 }:
 
-python3.pkgs.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   pname = "wyoming-faster-whisper";
-  version = "1.1.0";
+  version = "2.0.0";
   pyproject = true;
 
   src = fetchFromGitHub {
     owner = "rhasspy";
     repo = "wyoming-faster-whisper";
     rev = "refs/tags/v${version}";
-    hash = "sha256-RD6J/Q7kvd+sgTpR6ERyV+D8gpm0fF38L3U/Jp7gOgk=";
+    hash = "sha256-CeFSxL2Mn9lgboKghbteCl6VMTqruJgrI0io+TdaV5k=";
   };
 
-  patches = [
-    (fetchpatch {
-      # fix setup.py
-      url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/cdd1536997a091dcf9054da9ff424a2603067755.patch";
-      hash = "sha256-LGYo21FhKGXcAN9DjXzwIRqkOzTz3suXiQdgGrJSDBw=";
-    })
-  ];
-
-  nativeBuildInputs = with python3.pkgs; [
+  nativeBuildInputs = with python3Packages; [
     setuptools
     pythonRelaxDepsHook
   ];
@@ -33,9 +24,8 @@ python3.pkgs.buildPythonApplication rec {
     "wyoming"
   ];
 
-  propagatedBuildInputs = with python3.pkgs; [
-    ctranslate2
-    tokenizers
+  propagatedBuildInputs = with python3Packages; [
+    faster-whisper
     wyoming
   ];
 
@@ -47,6 +37,7 @@ python3.pkgs.buildPythonApplication rec {
   doCheck = false;
 
   meta = with lib; {
+    changelog = "https://github.com/rhasspy/wyoming-faster-whisper/releases/tag/v${version}";
     description = "Wyoming Server for Faster Whisper";
     homepage = "https://github.com/rhasspy/wyoming-faster-whisper";
     license = licenses.mit;