diff options
author | prspkt <prspkt@protonmail.com> | 2019-08-22 02:47:23 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-08-22 02:48:05 +0300 |
commit | aba3e1f189f8e9720322e3afcd8a55100daa5f77 (patch) | |
tree | 3cdd451e5f2287031749b07a13bb3dc48cf73a27 | |
parent | 631fd74a26570e0f1e1c7d29a76307fc65fc6b4d (diff) | |
download | aports-aba3e1f189f8e9720322e3afcd8a55100daa5f77.tar.bz2 aports-aba3e1f189f8e9720322e3afcd8a55100daa5f77.tar.xz |
community/py3-paho-mqtt: add checkdepends, run testsuite
* Clarify license.
Signed-off-by: prspkt <prspkt@protonmail.com>
-rw-r--r-- | community/py3-paho-mqtt/APKBUILD | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/community/py3-paho-mqtt/APKBUILD b/community/py3-paho-mqtt/APKBUILD index 921981435d..d957ecefee 100644 --- a/community/py3-paho-mqtt/APKBUILD +++ b/community/py3-paho-mqtt/APKBUILD @@ -2,23 +2,34 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-paho-mqtt pkgver=1.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="A python MQTT version 3.1/3.1.1 client class" -url="http://www.eclipse.org/paho/" +url="https://www.eclipse.org/paho/" arch="noarch" -license="EPL" +license="EPL-1.0" depends="python3" makedepends="py3-setuptools" +checkdepends="py3-pytest" source="paho-mqtt-$pkgver.tar.gz::https://github.com/eclipse/paho.mqtt.python/archive/v$pkgver.tar.gz" builddir="$srcdir"/paho.mqtt.python-$pkgver replaces=py-paho-mqtt # Backwards compatibility provides=py-paho-mqtt=$pkgver-r$pkgrel # Backwards compatibility +prepare() { + default_prepare + # remove illegal pytest option + sed -i '/addopts/d' setup.cfg +} + build() { python3 setup.py build } +check() { + PYTHONPATH="$builddir"/src py.test-3 +} + package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } |