summaryrefslogtreecommitdiff
path: root/experimental/py3-hbmqtt/APKBUILD
blob: 35172edf43a40f3bcb8e52b8da193df6bed80b75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-hbmqtt
_pkgname=${pkgname#py3-}
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=0.9.5
pkgrel=0
pkgdesc="MQTT client/broker using Python and asyncio"
url="https://pypi.org/project/hbmqtt/"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-docopt py3-passlib py3-pyyaml py3-six py3-transitions py3-websockets"
makedepends="python3-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	mkdir -p "$pkgdir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f5b1a301268c7af300a407a1a9734ba74ced825883e6740cc9d4e2eed4db48c55f6d76e4911a69743e1db514b1f2b4a05abb2320f40c349f2ac7a1d6c38d1642  hbmqtt-0.9.5.tar.gz"