aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-paho-mqtt/APKBUILD
diff options
context:
space:
mode:
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"
}