mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
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:
parent
6db020423c
commit
363358f66f
@ -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; [
|
||||
|
Loading…
Reference in New Issue
Block a user