From ba7f26d4e4b6d1898ab5d39e38084936d0104be9 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Tue, 29 Sep 2026 08:07:14 +0100 Subject: [PATCH] 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 Signed-off-by: Khem Raj --- .../packagegroups/packagegroup-meta-python.bb | 1 + .../python/python3-varlink_32.1.0.bb | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-varlink_32.1.0.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index 9d07fc44e2..f84941daf0 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -440,6 +440,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-ujson \ python3-unidiff \ python3-uritemplate \ + python3-varlink \ python3-vcversioner \ python3-versioneer \ python3-versiontools \ diff --git a/meta-python/recipes-devtools/python/python3-varlink_32.1.0.bb b/meta-python/recipes-devtools/python/python3-varlink_32.1.0.bb new file mode 100644 index 0000000000..7ce93c9370 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-varlink_32.1.0.bb @@ -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"