aports/community/py3-logbook/APKBUILD
2025-05-03 21:26:28 +02:00

37 lines
1 KiB
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-logbook
_pkgname=${pkgname#py3-}
pkgver=1.8.1
pkgrel=0
pkgdesc="Logging replacement for Python"
url="https://logbook.readthedocs.io/en/stable/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev cython"
checkdepends="py3-pytest py3-pytest-rerunfailures"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/getlogbook/logbook/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
rm -f tests/test_file_handler.py
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="
3a7960a34c30cf14319dbb01d12dbfb3bf87d624b75d692e417a95ee5357c92b1fa46678f3c546d0e539f60367a13a19bfb0f83c27d151cb972e0cf4fb278105 py3-logbook-1.8.1.tar.gz
"