Files
nixpkgs/pkgs/development/python-modules/elevenlabs/default.nix
T
2026-03-09 14:22:54 +00:00

55 lines
1.1 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
poetry-core,
pyaudio,
pydantic,
pydantic-core,
requests,
typing-extensions,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "elevenlabs";
version = "2.38.1";
pyproject = true;
src = fetchFromGitHub {
owner = "elevenlabs";
repo = "elevenlabs-python";
tag = "v${finalAttrs.version}";
hash = "sha256-NBznP5XWIPTYmHkzEx6yfQk6n/P6SGS7YMcJnrnOHMU=";
};
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 ];
};
})