Skip to contentSkip to conversation

python3-asyncvarlink: add recipe

PATCH New Alex Kiernan 1 participant 3 messages Sep 29

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python3-asyncvarlink: add recipe

asyncio Varlink binding with file-descriptor passing; interfaces are derived from annotated Python classes.

AI-Generated: Claude Opus 5 (Claude Code)

---
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 .../python/python3-asyncvarlink_0.3.2.bb      | 24 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-asyncvarlink_0.3.2.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index d9a91512763e..9d07fc44e27a 100644
@@ -39,6 +39,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-asttokens \
     python3-async-timeout \
     python3-asyncio-glib \
+    python3-asyncvarlink \
     python3-attr \
     python3-autobahn \
     python3-automat \
meta-python/recipes-devtools/python/python3-asyncvarlink_0.3.2.bb new file +24 -0
new file mode 100644
index 000000000000..66c69df5a8f5
@@ -0,0 +1,24 @@
+SUMMARY = "asyncio-compatible, type-driven Varlink implementation"
+DESCRIPTION = "An asyncio Varlink binding supporting file-descriptor passing, \
+with interfaces derived from annotated Python classes."
+HOMEPAGE = "https://github.com/helmutg/asyncvarlink"
+SECTION = "devel/python"
+
+LICENSE = "LGPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9ec28527f3d544b51ceb0e1907d0bf3f"
+
+SRC_URI = "git://github.com/helmutg/asyncvarlink.git;protocol=https;branch=main"
+SRCREV = "3e16139f72c7374f2ca3640045ef7162c98e7a4c"
+
+inherit python_flit_core ptest-python-pytest
+
+RDEPENDS:${PN} = "\
+    python3-asyncio \
+    python3-core \
+    python3-io \
+    python3-json \
+    python3-logging \
+"
+
+# tests/test_conversion.py:ConversionTests.test_invalid fails with less than ~2GB of RAM
+RDEPENDS:${PN}-ptest += "python3-hypothesis python3-netclient python3-unittest"
#1 lore raw

PATCH 2/3 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)

---
 .../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
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 9d07fc44e27a..f84941daf08b 100644
@@ -440,6 +440,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-ujson \
     python3-unidiff \
     python3-uritemplate \
+    python3-varlink \
     python3-vcversioner \
     python3-versioneer \
     python3-versiontools \
meta-python/recipes-devtools/python/python3-varlink_32.1.0.bb new file +35 -0
new file mode 100644
index 000000000000..7ce93c937014
@@ -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"
#2 lore raw

PATCH 3/3 python3-ping3: add recipe

In reply to Alex Kiernan

Pure Python ICMP ping.

AI-Generated: Claude Opus 5 (Claude Code)

---
 .../packagegroups/packagegroup-meta-python.bb     |  1 +
 .../python/python3-ping3_5.1.5.bb                 | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-ping3_5.1.5.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index f84941daf08b..a59249d6054e 100644
@@ -279,6 +279,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pid \
     python3-pika \
     python3-pillow \
+    python3-ping3 \
     python3-pint \
     python3-pkcs11 \
     python3-pkgconfig \
meta-python/recipes-devtools/python/python3-ping3_5.1.5.bb new file +15 -0
new file mode 100644
index 000000000000..84ac72c27c1e
@@ -0,0 +1,15 @@
+SUMMARY = "ICMP ping in pure Python"
+HOMEPAGE = "https://github.com/kyan001/ping3"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3ae28ad230db5766d33276b580887102"
+
+DEPENDS += "python3-wheel-native"
+
+SRC_URI[sha256sum] = "6c99bc844e0b7dbc5c9765e8b530140daf1ccd2112c99db01ab79831bd8081cd"
+
+inherit pypi python_setuptools_build_meta
+
+RDEPENDS:${PN} += "\
+    python3-io \
+    python3-logging \
+"