Merge pull request #240450 from mweinelt/tts-0.15.0

tts: 0.14.3 -> 0.15.0
This commit is contained in:
Martin Weinelt 2023-06-29 14:02:21 +02:00 committed by GitHub
commit 3456b015bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 5 deletions

View file

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# dependencies
, einops
, numpy
, torch-bin
, torchaudio-bin
}:
buildPythonPackage rec {
pname = "encodec";
version = "0.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "encodec";
rev = "v${version}";
hash = "sha256-+iJZkX1HoyuNFu9VRxMO6aAzNQybkH9lrQJ5Ao9+/CY=";
};
propagatedBuildInputs = [
einops
numpy
torch-bin
torchaudio-bin
];
pythonImportsCheck = [ "encodec" ];
# requires model data from the internet
doCheck = false;
meta = with lib; {
description = "State-of-the-art deep learning based audio codec supporting both mono 24 kHz audio and stereo 48 kHz audio";
homepage = "https://github.com/facebookresearch/encodec";
changelog = "https://github.com/facebookresearch/encodec/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -256,9 +256,12 @@ buildPythonPackage rec {
"tests/pytest_tests/unit_tests/test_lib/test_filesystem.py"
];
# Disable test that fails on darwin due to issue with python3Packages.psutil:
# https://github.com/giampaolo/psutil/issues/1219
disabledTests = lib.optionals stdenv.isDarwin [
disabledTests = [
# Timing sensitive
"test_login_timeout"
] ++ lib.optionals stdenv.isDarwin [
# Disable test that fails on darwin due to issue with python3Packages.psutil:
# https://github.com/giampaolo/psutil/issues/1219
"test_tpu_system_stats"
];

View file

@ -15,14 +15,14 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "tts";
version = "0.14.3";
version = "0.15.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "coqui-ai";
repo = "TTS";
rev = "refs/tags/v${version}";
hash = "sha256-4LojjH6ft9RfftBBFNWmC2pl/YXfgZCXhkZFsELTgCE=";
hash = "sha256-pu0MqNXNQfvxo2VHpiEYIz1OvplydCYPKU/NsZD0mJw=";
};
postPatch = let
@ -60,6 +60,7 @@ python.pkgs.buildPythonApplication rec {
bnunicodenormalizer
coqpit
einops
encodec
flask
fsspec
g2pkk

View file

@ -3260,6 +3260,8 @@ self: super: with self; {
enamlx = callPackage ../development/python-modules/enamlx { };
encodec = callPackage ../development/python-modules/encodec { };
energyflip-client = callPackage ../development/python-modules/energyflip-client { };
energyflow = callPackage ../development/python-modules/energyflow { };