blob: 50d048eb161d9b2c10e7f429c0f943eb6a175db9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
aiohttp,
certifi,
tabulate,
typing-extensions,
nix-update-script,
}:
buildPythonPackage rec {
pname = "edge-tts";
version = "7.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "rany2";
repo = "edge-tts";
tag = version;
hash = "sha256-KlQJ9U5RgifpqVKw5BrPwBFJYZHKibMUlyb3aX+4qf8=";
};
build-system = [
setuptools
wheel
];
dependencies = [
aiohttp
certifi
tabulate
typing-extensions
];
pythonImportsCheck = [ "edge_tts" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Microsoft Edge text-to-speech service WITHOUT Edge, Windows and API keys";
longDescription = ''
`edge-tts` is a Python module that allows you to use Microsoft
Edge's online text-to-speech service from within your Python
code or using the provided `edge-tts` or `edge-playback`
command.
'';
homepage = "https://github.com/rany2/edge-tts";
license = with lib.licenses; [
mit # `src/edge_tts/srt_composer.py` only
lgpl3Plus # All remaining files
];
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "edge-tts";
};
}
|