maintainer="Michał Polański <michal@polanski.me>"
pkgname=py3-tomli
pkgver=2.2.1
pkgrel=0
pkgdesc="A lil' TOML parser"
url="https://github.com/hukkin/tomli"
license="MIT"
arch="noarch"
makedepends="py3-gpep517 py3-flit-core"
subpackages="$pkgname-pyc"
source="https://github.com/hukkin/tomli/archive/$pkgver/py3-tomli-$pkgver.tar.gz"
builddir="$srcdir/tomli-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH=src python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/tomli-$pkgver-py3-none-any.whl
}

sha512sums="
6bd2600b06b9d41f45ae34172380d3ec162d0e25a7602e8e77ee37bbe165674ff17afc39c4d1f87c9cec9bd1f02003ba5ebaa313a60efca64ef5124f77a2c887  py3-tomli-2.2.1.tar.gz
"
