diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-13 14:36:52 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-13 14:36:52 +0100 |
commit | f975ee023359aa524389b9d4e7029d7b0cce1bad (patch) | |
tree | 311456331ca3c6517cbb01ac17a86097263a439e /pkgs/tools/audio | |
parent | f382d0b7785806c5ed3822b033cb8c2e36e1766d (diff) | |
download | nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar.gz nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar.bz2 nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar.lz nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar.xz nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.tar.zst nixpkgs-f975ee023359aa524389b9d4e7029d7b0cce1bad.zip |
tts: pin librosa at 0.8.1
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r-- | pkgs/tools/audio/tts/default.nix | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/tools/audio/tts/default.nix b/pkgs/tools/audio/tts/default.nix index 3a00ddc9959..4ee8644d712 100644 --- a/pkgs/tools/audio/tts/default.nix +++ b/pkgs/tools/audio/tts/default.nix @@ -13,7 +13,22 @@ # For now, for deployment check the systemd unit in the pull request: # https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136 -python3.pkgs.buildPythonApplication rec { +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 = oldAttrs.src.override { + inherit version; + sha256 = "c53d05e768ae4a3e553ae21c2e5015293e5efbfd5c12d497f1104cb519cca6b3"; + }; + }); + }; + }; +in +python.pkgs.buildPythonApplication rec { pname = "tts"; version = "0.5.0"; format = "setuptools"; @@ -43,11 +58,11 @@ python3.pkgs.buildPythonApplication rec { requirements.txt ''; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ cython ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ anyascii coqpit flask |