Skip to contentSkip to conversation

python3-varlink: Add recipe

PATCH Omri Sarig 1 participant 1 message Mar 20, 2025 1 message not in the archive

lore
Share & tools
lore

Omri Sarig

author
#1 lore raw
In reply to a message not in the archive

Accidentally submitted without the proper prefix, I'm sending the patch again, with the proper meta-python prefix in place.

Quoted 73 lines · Omri Sarig via lists.openembedded.org

Add a python recipe to install the python implementation for the varlink interface.

The recipe is using the current master head, instead of the version from pypi. This is done as the pypi version is 4 years old, while the master is continuously maintained in GitHub.

The runtime dependencies were created by looking at all the import statement in the installed files of the repository and looking at the relevant packages from the python3 manifest file in meta-poky.

---
  .../ptest-packagelists-meta-python.inc        |  1 +
  .../python/python3-varlink_git.bb             | 28 +++++++++++++++++++
  2 files changed, 29 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb

meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 3a1fb13ba7..40df4f08f3 100644
@@ -89,6 +89,7 @@ PTESTS_FAST_META_PYTHON = "\
      python3-unidiff \
      python3-uritemplate \
      python3-validators \
+    python3-varlink \
      python3-wrapt \
      python3-wsproto \
      python3-xlrd \
meta-python/recipes-devtools/python/python3-varlink_git.bb new file +28 -1
new file mode 100644
index 0000000000..8b5e01cf44
@@ -0,0 +1,28 @@
+SUMMARY = " Python implementation of the Varlink protocol"
+HOMEPAGE = "https://varlink.org/python/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI = "git://github.com/varlink/python.git;protocol=https;branch=master"
+
+SRCREV = "6012b8805bf2ebcc981c84bd56a3e949a2141c16"
+
+S = "${WORKDIR}/git"
+
+inherit python_setuptools_build_meta ptest-python-pytest
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+    python3-core \
+    python3-datetime \
+    python3-io \
+    python3-json \
+    python3-netclient \
+    python3-netserver \
+    python3-shell \
+    python3-stringold \
+    python3-unittest \
+"
+
+PTEST_PYTEST_DIR = "varlink/tests"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#116132): https://lists.openembedded.org/g/openembedded-devel/message/116132
Mute This Topic: https://lists.openembedded.org/mt/111806411/9376131
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-