diff --git a/dev-python/livekit-api/Manifest b/dev-python/livekit-api/Manifest new file mode 100644 index 0000000000..9597d12494 --- /dev/null +++ b/dev-python/livekit-api/Manifest @@ -0,0 +1 @@ +DIST livekit-api-1.2.1.gh.tar.gz 1194677 BLAKE2B f8a508ac07186f01c935e15dffd1cbe1ea75aac373d44a09c243e83a3bf06f513af61cfb3129b0b9ae6df878df3d4b661545fc865e05e00319aaa6bd5f78ec85 SHA512 1ab703371b19f92f29bfb6d8887dedb35eee1431d45390427ecdf4d7e1a880f42cd0c38fc29af3e472e764e4feb571e6d6c9da3248f95d738f953f858e9bf506 diff --git a/dev-python/livekit-api/livekit-api-1.2.1.ebuild b/dev-python/livekit-api/livekit-api-1.2.1.ebuild new file mode 100644 index 0000000000..579641f3c6 --- /dev/null +++ b/dev-python/livekit-api/livekit-api-1.2.1.ebuild @@ -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}" +} diff --git a/dev-python/livekit-api/metadata.xml b/dev-python/livekit-api/metadata.xml new file mode 100644 index 0000000000..745e5eb2b7 --- /dev/null +++ b/dev-python/livekit-api/metadata.xml @@ -0,0 +1,12 @@ + + + + + Katalin Rebhan + kat@knifepoint.net + + + livekit-api + livekit/python-sdks + +