1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 12:45:20 +03:00
aports/community/py3-json-logger/APKBUILD

37 lines
1,018 B
Text

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-json-logger
pkgver=2.0.5
pkgrel=0
pkgdesc="A python library adding a json log formatter"
url="https://github.com/madzak/python-json-logger"
arch="noarch"
license="BSD-2-Clause"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
source="$pkgname-v$pkgver.tar.gz::https://github.com/madzak/python-json-logger/archive/v$pkgver.tar.gz"
builddir="$srcdir/"python-json-logger-$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 unittest discover tests
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
ea67a51a4111a74d302a79e9747b39c97097ba7c0ce2aef919e5fab9c1090599f959ef243ec4e67bd8ea3da22028265bafaf409e8dda39e15082050b2bb4aa34 py3-json-logger-v2.0.5.tar.gz
"