From 363358f66f02e26cf37f59cd205f6e8f2f8edf9c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 26 Oct 2023 14:54:07 +0200 Subject: [PATCH] wyoming-faster-whisper: fix model download with python3.11+ A change in the enum behavior in python3.11 broke the download URL pattern interpolation for accessing models. --- pkgs/tools/audio/wyoming/faster-whisper.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/audio/wyoming/faster-whisper.nix b/pkgs/tools/audio/wyoming/faster-whisper.nix index 50ec99f6deee..4bc098240622 100644 --- a/pkgs/tools/audio/wyoming/faster-whisper.nix +++ b/pkgs/tools/audio/wyoming/faster-whisper.nix @@ -1,6 +1,7 @@ { lib , python3 , fetchPypi +, fetchpatch }: python3.pkgs.buildPythonApplication rec { @@ -16,6 +17,13 @@ python3.pkgs.buildPythonApplication rec { patches = [ ./faster-whisper-entrypoint.patch + + # fix model retrieval on python3.11+ + (fetchpatch { + url = "https://github.com/rhasspy/rhasspy3/commit/ea55a309e55384e6fd8c9f19534622968f8ed95b.patch"; + hash = "sha256-V9WXKE3+34KGubBS23vELTHjqU2RCTk3sX8GTjmH+AA="; + stripLen = 4; + }) ]; propagatedBuildInputs = with python3.pkgs; [