Updated to nixos 25.11

Updated TTS to 0.27.2
This commit is contained in:
Sebastian 2025-12-13 11:45:06 +01:00
parent e9745d566c
commit 380f0d5ada
4 changed files with 39 additions and 10 deletions

View file

@ -1,17 +1,17 @@
{ lib, python312Packages, pkgs }:
with python312Packages;
{ lib, python313Packages, pkgs }:
with python313Packages;
let
# Maintained fork of the original TTS package
coqui-tts =
let
pname = "coqui_tts";
version = "0.26.2";
version = "0.27.2";
in
buildPythonPackage {
inherit pname version;
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-DSD5W3Pl82hH0RxO0Vnme/2fozZlRmBRMbmKMRboNjc=";
sha256 = "sha256-GBxcUf4sVxG0H54KHMvSaZZXI1vpJ3oEruwoWhihtpM=";
};
doCheck = false;
pyproject = true;
@ -21,6 +21,35 @@ let
];
postPatch =
let
relaxedConstraints = [
"bnunicodenormalizer"
"coqpit-config"
"cython"
"gruut"
"inflect"
"librosa"
"mecab-python3"
"numba"
"numpy"
"unidic-lite"
"trainer"
"spacy\\[ja\\]"
"transformers"
"torch"
"torchaudio"
];
in
''
sed -r -i \
${lib.concatStringsSep "\n" (
map (package: ''-e 's/${package}\s*[<>=]+[^"]+/${package}/g' \'') relaxedConstraints
)}
pyproject.toml
'';
nativeBuildInputs = [ pkgs.espeak-ng ];
dependencies = [