Skip to content

Commit

Permalink
Merge pull request NixOS#226190 from mweinelt/tts-0.13.2
Browse files Browse the repository at this point in the history
tts: 0.12.0 -> 0.13.2
  • Loading branch information
mweinelt authored Apr 14, 2023
2 parents 830d948 + 3824e96 commit a5c77f8
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions pkgs/tools/audio/tts/default.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,20 @@
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, espeak-ng
, tts
}:

let
python = python3.override {
packageOverrides = self: super: {
# API breakage with 0.9.0
# TypeError: mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were given
librosa = super.librosa.overridePythonAttrs (oldAttrs: rec {
version = "0.8.1";
src = super.fetchPypi {
pname = "librosa";
inherit version;
hash = "sha256-xT0F52iuSj5VOuIcLlAVKT5e+/1cEtSX8RBMtRnMprM=";
};
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ (with super; [
resampy
]);
doCheck = false;
});

numpy = super.numpy.overridePythonAttrs (oldAttrs: rec {
version = "1.23.5";
src = super.fetchPypi {
pname = "numpy";
inherit version;
extension = "tar.gz";
hash = "sha256-Gxdm1vOXwYFT1AAV3fx53bcVyrrcBNLSKNTlqLxN7Ro=";
};
doCheck = false;
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "tts";
version = "0.12.0";
version = "0.13.2";
format = "pyproject";

src = fetchFromGitHub {
Expand All @@ -48,6 +24,17 @@ python.pkgs.buildPythonApplication rec {
hash = "sha256-3t4JYEwQ+puGLhGl3nn93qsL8IeOwlYtHXTrnZ5Cf+w=";
};

patches = [
(fetchpatch {
# upgrade librosa to 0.10.0
url = "https://github.com/coqui-ai/TTS/commit/4c829e74a1399ab083b566a70c1b7e879eda6e1e.patch";
hash = "sha256-QP9AnMbdEpGJywiZBreojHUjq29ihqy6HxvUtS5OKvQ=";
excludes = [
"requirements.txt"
];
})
];

postPatch = let
relaxedConstraints = [
"cython"
Expand Down

0 comments on commit a5c77f8

Please sign in to comment.