Skip to contentSkip to conversation

python3-uvloop: new package

PATCH New Ben Gampe 1 participant 1 message Mar 29, 2021

lore
Share & tools
lore

Ben Gampe

author
#0 lore raw

PATCH 1/1 python3-uvloop: new package

Add a recipe for python3-uvloop: a fast implementation of asyncio event loop on top of libuv

---
 .../python/python3-uvloop_0.15.2.bb           | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uvloop_0.15.2.bb
meta-python/recipes-devtools/python/python3-uvloop_0.15.2.bb new file +25 -0
new file mode 100644
index 000000000..4fa151e6a
@@ -0,0 +1,25 @@
+SUMMARY = "Fast implementation of asyncio event loop on top of libuv"
+HOMEPAGE = "http://github.com/MagicStack/uvloop"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=3bd0b2e751776b370b2151ac508af939"
+
+inherit setuptools3
+inherit pypi
+
+SRCNAME = "uvloop"
+
+DEPENDS = "${PYTHON_PN}-cython-native"
+
+BBCLASSEXTEND = "native"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+do_compile_prepend() {
+    export LIBUV_CONFIGURE_HOST=${HOST_SYS}
+}
+
+do_install_prepend() {
+    export LIBUV_CONFIGURE_HOST=${HOST_SYS}
+}
+
+SRC_URI[sha256sum] = "2bb0624a8a70834e54dde8feed62ed63b50bad7a1265c40d6403a2ac447bce01"
Signature · 1 line
2.25.1