aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-paho-mqtt/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-08-22 02:47:23 +0300
committerprspkt <prspkt@protonmail.com>2019-08-22 02:48:05 +0300
commitaba3e1f189f8e9720322e3afcd8a55100daa5f77 (patch)
tree3cdd451e5f2287031749b07a13bb3dc48cf73a27 /community/py3-paho-mqtt/APKBUILD
parent631fd74a26570e0f1e1c7d29a76307fc65fc6b4d (diff)
downloadaports-aba3e1f189f8e9720322e3afcd8a55100daa5f77.tar.gz
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>
Diffstat (limited to 'community/py3-paho-mqtt/APKBUILD')
-rw-r--r--community/py3-paho-mqtt/APKBUILD17
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"
}