testing/py3-minidb: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:26:50 +02:00
parent 198b7fca83
commit 84eaf1267a

View File

@ -2,28 +2,33 @@
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
pkgname=py3-minidb
pkgver=2.0.7
pkgrel=3
pkgrel=4
pkgdesc="Simple SQLite3 store for Python objects"
url="https://thp.io/2010/minidb"
arch="noarch"
license="ISC"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/m/minidb/minidb-$pkgver.tar.gz"
builddir="$srcdir/minidb-$pkgver/"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH=. pytest
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --root="$pkgdir" --skip-build
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="