1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/py3-httpcore/APKBUILD

51 lines
1.2 KiB
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-httpcore
pkgver=1.0.9
pkgrel=0
pkgdesc="Minimal HTTP client"
url="https://www.encode.io/httpcore/"
license="BSD-3-Clause"
arch="noarch"
depends="
python3
py3-anyio
py3-certifi
py3-h11
py3-sniffio
"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="
py3-h2
py3-hpack
py3-hyperframe
py3-pytest
py3-pytest-httpbin
py3-pytest-trio
py3-socksio
"
subpackages="$pkgname-pyc"
source="https://github.com/encode/httpcore/archive/$pkgver/py3-httpcore-$pkgver.tar.gz
remove-fancy-pypi-readme.patch
"
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="
0a1300d9c887dda66b4ac0739406daacd274c1137163b79dd8997a5928438c5b4b130a347e08016a2554bef73aad14225cd5786ff13e932e8d2fb48a4e7245ae py3-httpcore-1.0.9.tar.gz
ed30ba9568defdf3c9f5e821c576b1f1b088b3819d9f430049af68cace0e874278c7f75cafc446a7e9c0e39f7a9fbe12de11bce022b06ce2bce67e51952c3f8e remove-fancy-pypi-readme.patch
"