# Contributor: psykose # Maintainer: Antoine Martin (ayakael) pkgname=py3-structlog pkgver=23.1.0 pkgrel=2 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=" 527f5811a3d2365490c55d8e1f1cc0537254d8667bfc56214769bd6aae9f5368a1534536f061dbc06213c32dd9253703f8535323466ddb66032c6c1f776814ac py3-structlog-23.1.0.tar.gz "