Files
nixpkgs/pkgs/development/python-modules/elevenlabs/default.nix
T
2024-08-14 15:39:29 +00:00

50 lines
1.0 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
poetry-core,
pydantic,
pydantic-core,
requests,
typing-extensions,
websockets,
}:
buildPythonPackage rec {
pname = "elevenlabs";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "elevenlabs";
repo = "elevenlabs-python";
rev = "refs/tags/v${version}";
hash = "sha256-wRgDKaSNSdpOJLVeYx2gTbtQ8rcxEAjrxvCI9W1v5V4=";
};
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 ];
};
}