tts: use python38

This commit is contained in:
Robert Schütz 2021-07-02 14:00:46 +02:00 committed by Jonathan Ringer
parent 35a0095d4b
commit 11a1f2c8fe

View file

@ -1,7 +1,6 @@
{ lib { lib
, python3Packages , python38
, fetchFromGitHub , fetchFromGitHub
, python3
, fetchpatch , fetchpatch
}: }:
@ -17,10 +16,15 @@
# For now, for deployment check the systemd unit in the pull request: # For now, for deployment check the systemd unit in the pull request:
# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136 # https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
python3Packages.buildPythonApplication rec { let
python3 = python38;
in python3.pkgs.buildPythonApplication rec {
pname = "tts"; pname = "tts";
version = "0.0.15.1"; version = "0.0.15.1";
# https://github.com/coqui-ai/TTS/issues/570
disabled = python3.pythonAtLeast "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "coqui-ai"; owner = "coqui-ai";
repo = "TTS"; repo = "TTS";
@ -36,11 +40,11 @@ python3Packages.buildPythonApplication rec {
sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt
''; '';
nativeBuildInputs = with python3Packages; [ nativeBuildInputs = with python3.pkgs; [
cython cython
]; ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3.pkgs; [
anyascii anyascii
coqpit coqpit
flask flask
@ -69,11 +73,11 @@ python3Packages.buildPythonApplication rec {
# cython modules are not installed for some reasons # cython modules are not installed for some reasons
( (
cd TTS/tts/layers/glow_tts/monotonic_align cd TTS/tts/layers/glow_tts/monotonic_align
${python3Packages.python.interpreter} setup.py install --prefix=$out ${python3.interpreter} setup.py install --prefix=$out
) )
''; '';
checkInputs = with python3Packages; [ checkInputs = with python3.pkgs; [
pytest-sugar pytest-sugar
pytestCheckHook pytestCheckHook
]; ];