~dricottone/huttese-apk

ref: 57b6e8063a41a88f9d6f89ce8a14c8ba10471bc1 huttese-apk/py3-amqp/APKBUILD -rw-r--r-- 732 bytes
57b6e806 — Drew DeVault Fix up builds.sr.ht package 6 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=1
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"