blob: 4b499060c14defe6e15d2cc65ded6f3e9ae1163c (
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
|
{
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
poetry-core,
pyaudio,
pydantic,
pydantic-core,
requests,
typing-extensions,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "elevenlabs";
version = "2.30.0";
pyproject = true;
src = fetchFromGitHub {
owner = "elevenlabs";
repo = "elevenlabs-python";
tag = "v${finalAttrs.version}";
hash = "sha256-UxH7I/6Y1umMYnSVlZN81kn0jkwR4hwLxmlD2EhrF88=";
};
build-system = [ poetry-core ];
dependencies = [
httpx
pydantic
pydantic-core
requests
typing-extensions
websockets
];
optional-dependencies = {
pyaudio = [ pyaudio ];
};
pythonImportsCheck = [ "elevenlabs" ];
# tests access the API on the internet
doCheck = false;
meta = {
changelog = "https://github.com/elevenlabs/elevenlabs-python/releases/tag/${finalAttrs.src.tag}";
description = "Official Python API for ElevenLabs Text to Speech";
homepage = "https://github.com/elevenlabs/elevenlabs-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
})
|