1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-circuitbreaker/APKBUILD
2025-04-08 05:48:32 +00:00

36 lines
1.1 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-circuitbreaker
pkgver=2.1.3
pkgrel=0
pkgdesc="Python Circuit Breaker pattern implementation"
url="https://github.com/fabfuel/circuitbreaker"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-mock py3-pytest-tornasync"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/c/circuitbreaker/circuitbreaker-$pkgver.tar.gz"
builddir="$srcdir/circuitbreaker-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
40fa0adb50582ee45b2712fa30297f326b9d42363851ab3009b0bdda7ee407f693e231268513c5a16684668dd53f63d114a19d938760ea6731f2e048ac097cb7 circuitbreaker-2.1.3.tar.gz
"