Jörg Thalheim 2023-04-22 18:57:48 +02:00 committed by Martin Weinelt
parent 7c7baa0b78
commit 9b34258215

View File

@ -1,7 +1,6 @@
{ 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