Added nix files
This commit is contained in:
parent
91ad1790e1
commit
11a3d47d34
6 changed files with 252 additions and 1 deletions
62
default.nix
Normal file
62
default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib, python311Packages }:
|
||||
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;
|
||||
|
||||
dependencies = [
|
||||
cython
|
||||
numpy
|
||||
torch
|
||||
torchaudio
|
||||
coqpit
|
||||
trainer
|
||||
pysbd
|
||||
pandas
|
||||
matplotlib
|
||||
anyascii
|
||||
inflect
|
||||
bangla
|
||||
bnnumerizer
|
||||
bnunicodenormalizer
|
||||
gruut
|
||||
jamo
|
||||
jieba
|
||||
pypinyin
|
||||
];
|
||||
};
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue