# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=py3-idna _pkgname=idna pkgver=3.4 pkgrel=4 pkgdesc="IDNA 2008 and UTS #46 for Python3" url="https://github.com/kjd/idna" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends=" py3-gpep517 py3-flit-core py3-installer py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$_pkgname-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-idna" # Backwards compatibility provides="py-idna=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/$_pkgname-$pkgver-py3-none-any.whl } sha512sums=" 0fc174ef91061e87cf31b7bc2ff7d1cb12167ece10f030fc3820bf27555e9fa498221161e3a0c272635013f4c771fc0e3855f8d968e0146fb5d93f81699f6bce idna-3.4.tar.gz "