# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=py3-h2 _pkgname=hyper-h2 pkgver=3.1.1 pkgrel=1 pkgdesc="HTTP/2 State-Machine based protocol implementation" options="!check" # Requires unpackaged hyperframe url="https://python-hyper.org/h2/" arch="noarch" license="MIT" makedepends="py3-setuptools" checkdepends="py3-pytest py3-hypothesis" source="$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-h2" # Backwards compatibility provides="py-h2=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { pytest-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="153c450ef918cc7cdb5d8efe61692a646925e76e6255ef46f679091590681be7d1f9319b37f6521c56207cf35e7d9e56951e4e3b55a24fe89d9e6aa28591957b py3-h2-3.1.1.tar.gz"