{ buildPythonPackage, fetchFromGitHub, httpx, lib, poetry-core, pyaudio, pydantic, pydantic-core, requests, typing-extensions, websockets, }: let version = "2.17.0"; tag = "v${version}"; in buildPythonPackage { pname = "elevenlabs"; inherit version; pyproject = true; src = fetchFromGitHub { owner = "elevenlabs"; repo = "elevenlabs-python"; inherit tag; hash = "sha256-nIIUMz43o3C7nMMpBnPAPFLTcK3WJyW0v4Vb29yRa88="; }; 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/${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 ]; }; }