blob: da3ab97e8687748b6f3cb35d8881c2400492596f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
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"
|