1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-httpcore/APKBUILD
2023-02-04 16:51:41 +01:00

47 lines
1 KiB
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-httpcore
pkgver=0.16.3
pkgrel=0
pkgdesc="Minimal HTTP client"
url="https://www.encode.io/httpcore/"
license="BSD-3-Clause"
arch="noarch !armhf !ppc64le" # limited by py3-anyio
depends="
python3
py3-anyio
py3-certifi
py3-h11
py3-sniffio
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="
py3-h2
py3-hpack
py3-hyperframe
py3-pytest
py3-pytest-httpbin
py3-pytest-trio
py3-socksio
"
source="https://github.com/encode/httpcore/archive/$pkgver/py3-httpcore-$pkgver.tar.gz"
builddir="$srcdir/httpcore-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$PWD/build/lib" pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/httpcore-$pkgver-py3-none-any.whl
}
sha512sums="
d889da0a3fee4f190ecc3981b8af34fa9b285d00f4ad92158a085c65f3ad8fa5a97a8c711bd51f8b9518b9d2c90ecd457dee1a3d7bbf853715473f4707cc421a py3-httpcore-0.16.3.tar.gz
"