Files
nixpkgs/pkgs/development/python-modules/livekit-api/default.nix
R. Ryantm 89b3590002 python3Packages.livekit-api: 1.0.12 -> 1.0.6
This is actually an update, because the wrong tag was used.
2025-09-30 14:48:19 +02:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyjwt,
aiohttp,
protobuf,
livekit-protocol,
pytestCheckHook,
gitUpdater,
}:
buildPythonPackage rec {
pname = "livekit-api";
version = "1.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "livekit";
repo = "python-sdks";
tag = "api-v${version}";
hash = "sha256-AsTJC0j8dztua7B6JvAYQlHGsE1RCIGoCzfGgbHSnGU=";
};
pypaBuildFlags = [ "livekit-api" ];
build-system = [ setuptools ];
dependencies = [
pyjwt
aiohttp
protobuf
livekit-protocol
];
pythonRemoveDeps = [ "types-protobuf" ];
nativeCheckInputs = [
pytestCheckHook
];
enabledTestPaths = [ "livekit-api/tests" ];
pythonImportsCheck = [ "livekit" ];
passthru.updateScript = gitUpdater { rev-prefix = "api-v"; };
meta = {
description = "LiveKit real-time and server SDKs for Python";
homepage = "https://github.com/livekit/python-sdks/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ soyouzpanda ];
platforms = lib.platforms.all;
};
}