summaryrefslogtreecommitdiff
path: root/repo/python-nio/python-nio.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/python-nio/python-nio.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/python-nio/python-nio.xibuild')
-rw-r--r--repo/python-nio/python-nio.xibuild20
1 files changed, 20 insertions, 0 deletions
diff --git a/repo/python-nio/python-nio.xibuild b/repo/python-nio/python-nio.xibuild
new file mode 100644
index 0000000..93bdead
--- /dev/null
+++ b/repo/python-nio/python-nio.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+MAKEDEPS="python"
+
+PKG_VER=3.4.2
+SOURCE=https://files.pythonhosted.org/packages/source/n/nio/nio-$PKG_VER.tar.gz
+MAKEDEPS="python"
+DESC="A framework for building blocks and modules for the nio Platform"
+
+prepare () {
+ find -name "*.py" | xargs sed -i 's/from collections import Iterable/from collections.abc import Iterable/g'
+}
+
+build() {
+ python setup.py build
+}
+
+package () {
+ python setup.py install --root="$PKG_DEST" --optimize=1
+}