testing/py3-hpack: new aports

This commit is contained in:
Antoine Fontaine 2020-05-31 23:21:33 +02:00 committed by Leo
parent 81ce71e2c7
commit 36dcebf338

View File

@ -0,0 +1,30 @@
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
pkgname=py3-hpack
pkgver=3.0.0
pkgrel=0
pkgdesc="HTTP/2 framing layer for Python"
url="https://hyper.rtfd.org/"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest py3-hypothesis"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/h/hpack/hpack-$pkgver.tar.gz"
builddir="$srcdir/hpack-$pkgver"
options="!check" # testsuite appears to miss some py3-pytest-* dependency
build() {
python3 setup.py build
}
check() {
cd test
python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="ffac4bdf19f8826027d8f89fe07e1837eacabbf18d1ff18e0cb13505c6714afd62125aa5cc594c75273725be71cc6e17b2315257fabb7779ce51de8c877267a3 hpack-3.0.0.tar.gz"