# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=py3-rfc6555
_pyname=rfc6555
pkgver=0.1.0
pkgrel=1
pkgdesc="Happy Eyeballs Algorithm described in RFC 6555"
url="https://github.com/sethmlarson/rfc6555/"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="
	py3-pytest
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sethmlarson/rfc6555/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

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

check() {
	PYTHONPATH=. pytest
}

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

sha512sums="
7f818047c1915aaa524a7c1599c6e34e66d822627c8fe37eba3b3a5730549db2c3e0df12ac1c6c2b26aebc5ff28ebbe683a7630db4c1c8a3b45fa43e2a04883c  py3-rfc6555-0.1.0.tar.gz
"
