diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
commit | f6332a43c35387c4a2dea1746be5fd092890ae0e (patch) | |
tree | d6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/python-matrix-nio/python-matrix-nio.xibuild | |
parent | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff) |
added lf and iptables
Diffstat (limited to 'repo/python-matrix-nio/python-matrix-nio.xibuild')
-rw-r--r-- | repo/python-matrix-nio/python-matrix-nio.xibuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/python-matrix-nio/python-matrix-nio.xibuild b/repo/python-matrix-nio/python-matrix-nio.xibuild new file mode 100644 index 0000000..81db027 --- /dev/null +++ b/repo/python-matrix-nio/python-matrix-nio.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +NAME="python-matrix-nio" +DESC="Python interface to DBus notifications" + +MAKEDEPS="python-build python-installer python-poetry-core python-pyrsistent" + +PKG_VER=0.19.0 +SOURCE=" + https://github.com/poljar/matrix-nio/archive/$PKG_VER/matrix-nio-$PKG_VER.tar.gz + " + +build() { + # XXX: hack to make poetry not ignore files + GIT_DIR=. python3 -m build --no-isolation --wheel +} + +check() { + python3 -m installer -d testenv \ + dist/matrix_nio-$PKG_VER-py3-none-any.whl + local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" + # test_connect_wrapper requires a network connection + PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest -k 'not test_connect_wrapper' + +} + +package() { + python3 -m installer -d "$PKG_DEST" \ + dist/matrix_nio-$PKG_VER-py3-none-any.whl +} + |