ayaports/backports/py3-amqp/APKBUILD

38 lines
971 B
Text
Raw Permalink Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-amqp
pkgver=5.1.1
pkgrel=2
2022-12-27 20:40:33 +00:00
pkgdesc="an AMQP implementation"
url="https://pypi.org/project/amqp/"
2022-12-27 20:40:33 +00:00
arch="noarch"
license="BSD-3-Clause"
depends="py3-vine python3"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
2022-12-27 20:40:33 +00:00
checkdepends="py3-vine py3-case py3-nose py2py3-mock"
subpackages="$pkgname-pyc"
2022-12-27 20:40:33 +00:00
source="https://files.pythonhosted.org/packages/source/a/amqp/amqp-$pkgver.tar.gz"
options="!check" # requires a running rabbitmq sever
builddir="$srcdir"/amqp-$pkgver
replaces="py-amqp" # Backwards compatibility
provides="py-amqp=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2022-12-27 20:40:33 +00:00
}
check() {
python3 setup.py test
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
2022-12-27 20:40:33 +00:00
}
sha512sums="
f549a85e4f04543dd8e844edb68350ca185de9259aa896af31ae5ee5dfdfe73f904d95821c403dc797c7f3ada17ce6bff4e0fd9fcdf2abc1b33a94d079f99179 amqp-5.1.1.tar.gz
"