mensa-tts/default.nix

66 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-12-18 18:41:25 +01:00
{ lib, python311Packages, pkgs }:
2024-12-18 17:32:24 +01:00
with python311Packages;
let
# Stripped down version of the tts package (original is broken and needs cuda)
tts =
let
pname = "TTS";
version = "0.22.0";
in
buildPythonPackage {
inherit pname version;
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-uREZ2n/yrns9rnMo7fmvTbO0jEDrTOFdEe2PXum9cIY=";
};
doCheck = false;
2024-12-18 18:41:25 +01:00
nativeBuildInputs = [ pkgs.espeak-ng ];
2024-12-18 17:32:24 +01:00
dependencies = [
cython
numpy
torch
torchaudio
coqpit
trainer
pysbd
pandas
matplotlib
anyascii
inflect
bangla
bnnumerizer
bnunicodenormalizer
gruut
jamo
jieba
pypinyin
2024-12-18 18:41:25 +01:00
pkgs.espeak
2024-12-18 17:32:24 +01:00
];
};
in
buildPythonApplication {
pname = "mensa-tts";
version = "1.0";
pyproject = true;
src = ./.;
build-system = [
setuptools
setuptools-scm
];
dependencies = [
requests
tts
librosa
];
meta = with lib; {
description = "Satnogs Demo Display";
homepage = "https://forgejo.zenerdio.de/sebastian/satnogs-demo-display";
platforms = platforms.unix;
};
}