Commit 9b342582 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by Martin Weinelt
Browse files
parent 7c7baa0b
Loading
Loading
Loading
Loading
+6 −14
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, espeak-ng
, tts
}:
@@ -14,29 +13,19 @@ let
in
python.pkgs.buildPythonApplication rec {
  pname = "tts";
  version = "0.13.2";
  version = "0.13.3";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "coqui-ai";
    repo = "TTS";
    rev = "refs/tags/v${version}";
    hash = "sha256-3t4JYEwQ+puGLhGl3nn93qsL8IeOwlYtHXTrnZ5Cf+w=";
    hash = "sha256-cu714/XtVqqlHN2CmUObcNFG6Vdi9VqC4at/HB8euDs=";
  };

  patches = [
    (fetchpatch {
      # upgrade librosa to 0.10.0
      url = "https://github.com/coqui-ai/TTS/commit/4c829e74a1399ab083b566a70c1b7e879eda6e1e.patch";
      hash = "sha256-QP9AnMbdEpGJywiZBreojHUjq29ihqy6HxvUtS5OKvQ=";
      excludes = [
        "requirements.txt"
      ];
    })
  ];

  postPatch = let
    relaxedConstraints = [
      "bnunicodenormalizer"
      "cython"
      "gruut"
      "inflect"
@@ -64,6 +53,9 @@ python.pkgs.buildPythonApplication rec {

  propagatedBuildInputs = with python.pkgs; [
    anyascii
    bangla
    bnnumerizer
    bnunicodenormalizer
    coqpit
    flask
    fsspec