mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
community/py3-paho-mqtt: add checkdepends, run testsuite
* Clarify license. Signed-off-by: prspkt <prspkt@protonmail.com>
This commit is contained in:
parent
631fd74a26
commit
aba3e1f189
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user