mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
lib,
|
|
poetry-core,
|
|
pyaudio,
|
|
pydantic,
|
|
pydantic-core,
|
|
requests,
|
|
typing-extensions,
|
|
websockets,
|
|
}:
|
|
|
|
let
|
|
version = "2.3.0";
|
|
tag = "v${version}";
|
|
in
|
|
buildPythonPackage {
|
|
pname = "elevenlabs";
|
|
inherit version;
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elevenlabs";
|
|
repo = "elevenlabs-python";
|
|
inherit tag;
|
|
hash = "sha256-vj4ZmtumLq7Jveq7ID/FoPjlIz7Dv8uqMN4Nq6tSW/E=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|