python3-varlink: add recipe

Reference Python Varlink binding. Fetched from git as 32.1.0 was never
published to PyPI (latest there is 31.0.0 from 2021).

AI-Generated: Claude Opus 5 (Claude Code)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Alex Kiernan authored and Khem Raj committed 2026-09-29 06:49:21 -07:00
1 parent ede527b9db
commit ba7f26d4e4
2 files changed
+36

No files matched your search

@@ -440,6 +440,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-ujson \
python3-unidiff \
python3-uritemplate \
python3-varlink \
python3-vcversioner \
python3-versioneer \
python3-versiontools \
@@ -0,0 +1,35 @@
SUMMARY = "Python implementation of the Varlink protocol"
HOMEPAGE = "https://github.com/varlink/python"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
DEPENDS += "python3-setuptools-scm-native python3-wheel-native"
# 32.1.0 is not published on PyPI
SRC_URI = "git://github.com/varlink/python.git;protocol=https;branch=master"
SRCREV = "8b3ba4e8206b098c524f538036a941b47797840d"
inherit python_setuptools_build_meta ptest-python-pytest
# Otherwise setuptools_scm falls back to 0.1.dev1
export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}"
RDEPENDS:${PN} = "\
python3-core \
python3-datetime \
python3-io \
python3-json \
python3-netclient \
python3-netserver \
python3-shell \
"
# Keep the bundled test suite, and its python3-unittest dependency, separate
FILES:${PN}-ptest = "${PYTHON_SITEPACKAGES_DIR}/varlink/tests"
RDEPENDS:${PN}-ptest = "${PN} python3-unittest"
# Upstream keeps its tests inside the importable package rather than in a
# top-level tests/ directory.
PTEST_PYTEST_DIR = "varlink/tests"