mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
50 lines
1023 B
Nix
50 lines
1023 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
lib,
|
|
poetry-core,
|
|
pydantic,
|
|
pydantic-core,
|
|
requests,
|
|
typing-extensions,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "elevenlabs";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elevenlabs";
|
|
repo = "elevenlabs-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-0fkt2Z05l95b2S+xoyyy9VGAUZDI1SM8kdcP1PCrUg8=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
pydantic
|
|
pydantic-core
|
|
requests
|
|
typing-extensions
|
|
websockets
|
|
];
|
|
|
|
pythonImportsCheck = [ "elevenlabs" ];
|
|
|
|
# tests access the API on the internet
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/elevenlabs/elevenlabs-python/releases/tag/v${version}";
|
|
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 ];
|
|
};
|
|
}
|