dev-python/livekit-api: new package, add 1.2.1

Signed-off-by: Katalin Rebhan <kat@knifepoint.net>
This commit is contained in:
Katalin Rebhan committed 2026-10-21 01:33:00 +02:00
1 parent 2565128802
commit 0b64a3da1f
3 files changed
+79

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST livekit-api-1.2.1.gh.tar.gz 1194677 BLAKE2B f8a508ac07186f01c935e15dffd1cbe1ea75aac373d44a09c243e83a3bf06f513af61cfb3129b0b9ae6df878df3d4b661545fc865e05e00319aaa6bd5f78ec85 SHA512 1ab703371b19f92f29bfb6d8887dedb35eee1431d45390427ecdf4d7e1a880f42cd0c38fc29af3e472e764e4feb571e6d6c9da3248f95d738f953f858e9bf506
@@ -0,0 +1,66 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..15} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1
DESCRIPTION="LiveKit real-time and server SDKs for Python"
HOMEPAGE="
https://github.com/livekit/python-sdks/
https://pypi.org/project/livekit-api/"
SRC_URI="https://github.com/livekit/python-sdks/archive/api-v${PV}.tar.gz -> ${P}.gh.tar.gz"
MY_TOPDIR="${WORKDIR}/python-sdks-api-v${PV}"
S="${MY_TOPDIR}/livekit-api"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/pyjwt-2.0.0[${PYTHON_USEDEP}]
>=dev-python/aiohttp-3.9.0[${PYTHON_USEDEP}]
>=dev-python/protobuf-4[${PYTHON_USEDEP}]
>=dev-python/types-protobuf-4[${PYTHON_USEDEP}]
>=dev-python/livekit-protocol-1.1.27[${PYTHON_USEDEP}]"
BDEPEND="
test? (
${RDEPEND}
media-video/livekit[test-server] )"
EPYTEST_PLUGINS=()
EPYTEST_IGNORE=(
# This is a different subproject this package isn't installing
tests/rtc/ )
EPYTEST_DESELECT=(
# fails
tests/api/test_livekitapi.py::test_sip_busy )
distutils_enable_tests pytest
python_test() {
cd "${MY_TOPDIR}"
# Tests expect a running LiveKit mock server
exec 3< <(livekit-test-server)
local lk_pid=$!
# Wait until it's ready
while IFS= read -r line <&3; do
echo "$line"
[[ "$line" =~ "region-3 listening" ]] && break
done
cat <&3 &
nonfatal epytest
local epytest_result=$?
kill -INT $lk_pid
wait $lk_pid
(( epytest_result == 0 )) || die "pytest failed with ${EPYTHON}"
}
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Katalin Rebhan</name>
<email>kat@knifepoint.net</email>
</maintainer>
<upstream>
<remote-id type="pypi">livekit-api</remote-id>
<remote-id type="github">livekit/python-sdks</remote-id>
</upstream>
</pkgmetadata>