mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
lib,
|
|
poetry-core,
|
|
pydantic,
|
|
pydantic-core,
|
|
requests,
|
|
typing-extensions,
|
|
websockets,
|
|
}:
|
|
|
|
let
|
|
version = "1.57.0";
|
|
tag = "v${version}";
|
|
in
|
|
buildPythonPackage {
|
|
pname = "elevenlabs";
|
|
inherit version;
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elevenlabs";
|
|
repo = "elevenlabs-python";
|
|
inherit tag;
|
|
hash = "sha256-t5/el7rmJvZHBCfmRhJ61ZJenELH99GEJ6XNRkpcKNo=";
|
|
};
|
|
|
|
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/${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 ];
|
|
};
|
|
}
|