Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 54 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ buildPythonPackage, fetchFromGitHub, httpx, lib, poetry-core, pyaudio, pydantic, pydantic-core, requests, typing-extensions, websockets,}:
buildPythonPackage (finalAttrs: { pname = "elevenlabs"; version = "2.43.0"; pyproject = true;
src = fetchFromGitHub { owner = "elevenlabs"; repo = "elevenlabs-python"; tag = "v${finalAttrs.version}"; hash = "sha256-w8IvjwC1X81BhPgTcHWx/vDL9M/ZoHUNsvTySmN0qW0="; };
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 ]; };})