aports/community/py3-kombu/APKBUILD
2025-06-09 16:40:00 +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.4
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="
f3227303aa7ad1a4bd480c601f99f7b4ae2db6d3790defd02b4a9e4ccd6875630a9e6582f65f334a04a5111c456c489395fc4af5b2dd4a557e6aa47616859668 kombu-5.5.4.tar.gz
"