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.
This commit is contained in:
Martin Weinelt 2023-10-26 14:54:07 +02:00
parent 6db020423c
commit 363358f66f
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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; [