aports/community/py3-kombu/APKBUILD
2025-06-08 14:57:05 +00:00

43 lines
1.5 KiB
Text

# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-kombu
pkgver=5.5.3
pkgrel=0
pkgdesc="a message queue abstraction layer"
url="https://pypi.org/project/kombu/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-amqp py3-vine"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-pyro4 py3-case py3-nose py3-mock py3-tz py3-tzdata py3-pytest py3-sqlalchemy py3-fakeredis py3-botocore py3-hypothesis py3-sniffio py3-google-api-python-client py3-googleapis-common-protos"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/k/kombu/kombu-$pkgver.tar.gz"
builddir="$srcdir/kombu-$pkgver"
replaces="py-kombu" # Backwards compatibility
provides="py-kombu=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
# t/unit/transport/test_azurestoragesqueues.py: needs py3-azure
# t/unit/transport/test_gcpubsub.py: needs py3-google-cloud-pubsub
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
.testenv/bin/python3 -m pytest -v \
--ignore="t/unit/transport/test_azurestoragequeues.py" \
--ignore="t/unit/transport/test_gcpubsub.py"
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
0cf17dec475b30cf30169f39d4819f205cc437cc5880de254c19bbf65b9320453ab244187f5b83715ef7e4b1861985097d4d1614c040b9268a018afef5938147 kombu-5.5.3.tar.gz
"