~dricottone/huttese-apk

ref: 8c3c3e9ef3ca93890927addc991c5096126ba0a3 huttese-apk/sr.ht/py3-amqp/APKBUILD -rw-r--r-- 732 bytes
8c3c3e9e — Drew DeVault Add pkgver function 5 years ago
                                                                                
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
_name=amqp
pkgname=py3-amqp
pkgver=2.2.2
pkgrel=0
pkgdesc="Low-level AMQP client for Python"
url="https://github.com/celery/py-amqp"
arch="noarch"
license="LGPL"
depends="python3 py3-vine"
makedepends="py-setuptools"
source="https://files.pythonhosted.org/packages/source/a/${_name}/${_name}-${pkgver}.tar.gz"
builddir="$srcdir/${_name}-${pkgver}"

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	pytest-3
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="8ebb8f2b0942e9b88b12cf35b8861da392190dd200d843bf3bba7b98e325afa53f52fe3f8250af1d2c1c14ffe8a071df5494d1eedc1bff974cd62fe88bc3e1e7  amqp-2.2.2.tar.gz"