Updated to nixos 25.11
Updated TTS to 0.27.2
This commit is contained in:
parent
e9745d566c
commit
380f0d5ada
4 changed files with 39 additions and 10 deletions
37
default.nix
37
default.nix
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue