# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=py3-h11
pkgver=0.14.0
pkgrel=4
pkgdesc="pure-python, bring-your-own-I/O implementation of HTTP/1.1"
url="https://github.com/python-hyper/h11"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="py3-h11-$pkgver.tar.gz::https://github.com/python-hyper/h11/archive/v$pkgver.tar.gz"
builddir="$srcdir/h11-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest h11
}

package() {
	python3 setup.py install --root="$pkgdir"

	rm -r "$pkgdir"/usr/lib/python3*/site-packages/h11/tests
}

sha512sums="
f49d35876cd5e8ca190a6b5187f8580780f0517cb7de78bf32dd1de8a814c9fd000e6ee4db2d72108c8f1b6628157eed8c11ad7940adffde28e410a01c0a318e  py3-h11-0.14.0.tar.gz
"
