Unverified Commit 363358f6 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

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.
parent 6db02042
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
{ 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; [