diff options
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 +} + |