# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-tables2
pkgver=2.7.5
pkgrel=0
pkgdesc="Table/data-grid framework for Django"
url="https://github.com/jieter/django-tables2"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-django"
makedepends="py3-gpep517 py3-hatchling"
options="!check" #no testsuite
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-tables2/django_tables2-$pkgver.tar.gz"
builddir="$srcdir"/django_tables2-$pkgver

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

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d117d2a74cbbd82d3727c0864fdac32c76557b3b884a3c293575c64b0e4c4b1664cea539b180796aec96284035188f5586649fb8c050eccdc048ed627b7ddf96  django_tables2-2.7.5.tar.gz
"
