aports/testing/py3-rabbit/APKBUILD
2024-08-06 14:26:29 +02:00

34 lines
1 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-rabbit
_pkgname=pyrabbit
pkgver=1.1.0
pkgrel=8
pkgdesc="Pythonic interface to the RabbitMQ Management HTTP API"
url="https://github.com/bkjones/pyrabbit"
arch="noarch"
license="MIT"
depends="python3 py3-httplib2"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # No testsuite in PYPI tarball
replaces="py-rabbit" # Backwards compatibility
provides="py-rabbit=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
aa18c3ad232840da9b4978e275c05a82ea75212f3c4ee2df68075ac93295d9448a2376656953e7d1d9c9bc6a7e759eef020a8aaef98491a12959a416c31187ad pyrabbit-1.1.0.tar.gz
"