1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-structlog/APKBUILD

51 lines
1.2 KiB
Text

# Contributor: psykose <alice@ayaya.dev>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-structlog
pkgver=25.3.0
pkgrel=0
pkgdesc="Simple, powerful, and fast logging for Python"
url="https://github.com/hynek/structlog"
arch="noarch"
license="Apache-2.0 OR MIT"
makedepends="
py3-gpep517
py3-hatch-fancy-pypi-readme
py3-hatch-vcs
py3-hatchling
py3-wheel
"
checkdepends="
py3-coverage
py3-freezegun
py3-pretend
py3-pytest
py3-pytest-asyncio
py3-pytest-xdist
py3-rich
py3-simplejson
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/structlog-$pkgver"
build() {
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
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 -n4
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
6f98b1ab3a0691f842cd16bd69d6b63232f5555870d0d0adcd8d0818c997495d103cdf3d1cc0efa1be2923134a8c77081e2df9c50ceca3d1e7bab64ff4305cc4 py3-structlog-25.3.0.tar.gz
"