From f6332a43c35387c4a2dea1746be5fd092890ae0e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 27 Jun 2022 23:09:07 +0100 Subject: added lf and iptables --- repo/python-matrix-nio/python-matrix-nio.xibuild | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 repo/python-matrix-nio/python-matrix-nio.xibuild (limited to 'repo/python-matrix-nio/python-matrix-nio.xibuild') 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 +} + -- cgit v1.2.1