# Contributor: psykose # Maintainer: Antoine Martin (ayakael) pkgname=py3-structlog pkgver=24.1.0 pkgrel=1 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=" 9f679843a6866528531d791485e2b86bd86df9d3fefd76469a23ae7af6c57c9af4964fef86e90ad35ded46d6d642cea0a58c583256f38d382485a4061142eb6b py3-structlog-24.1.0.tar.gz "