mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-07 23:02:40 +02:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-hyperframe
|
|
pkgver=6.0.1
|
|
pkgrel=4
|
|
pkgdesc="HTTP/2 framing layer for Python"
|
|
url="https://python-hyper.org/projects/hyperframe/en/stable/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
checkdepends="py3-pytest"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-$pkgver.tar.gz"
|
|
builddir="$srcdir/hyperframe-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2a5101b2e91e047fe39b32f81a1a8b2240c371fed28a5e1581e743371418388a7dfb55bc819c46a45804e7f00a5231ca54c92aa1b5b41ffeb714b8cb3ac485ca hyperframe-6.0.1.tar.gz
|
|
"
|