tts: use python38

authored by

Robert Schütz and committed by
Jonathan Ringer
11a1f2c8 35a0095d

+11 -7
+11 -7
pkgs/tools/audio/tts/default.nix
··· 1 1 { lib 2 - , python3Packages 2 + , python38 3 3 , fetchFromGitHub 4 - , python3 5 4 , fetchpatch 6 5 }: 7 6 ··· 17 16 # For now, for deployment check the systemd unit in the pull request: 18 17 # https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136 19 18 20 - python3Packages.buildPythonApplication rec { 19 + let 20 + python3 = python38; 21 + in python3.pkgs.buildPythonApplication rec { 21 22 pname = "tts"; 22 23 version = "0.0.15.1"; 23 24 25 + # https://github.com/coqui-ai/TTS/issues/570 26 + disabled = python3.pythonAtLeast "3.9"; 27 + 24 28 src = fetchFromGitHub { 25 29 owner = "coqui-ai"; 26 30 repo = "TTS"; ··· 36 40 sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt 37 41 ''; 38 42 39 - nativeBuildInputs = with python3Packages; [ 43 + nativeBuildInputs = with python3.pkgs; [ 40 44 cython 41 45 ]; 42 46 43 - propagatedBuildInputs = with python3Packages; [ 47 + propagatedBuildInputs = with python3.pkgs; [ 44 48 anyascii 45 49 coqpit 46 50 flask ··· 69 73 # cython modules are not installed for some reasons 70 74 ( 71 75 cd TTS/tts/layers/glow_tts/monotonic_align 72 - ${python3Packages.python.interpreter} setup.py install --prefix=$out 76 + ${python3.interpreter} setup.py install --prefix=$out 73 77 ) 74 78 ''; 75 79 76 - checkInputs = with python3Packages; [ 80 + checkInputs = with python3.pkgs; [ 77 81 pytest-sugar 78 82 pytestCheckHook 79 83 ];