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-httpx/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

47 lines
1.3 KiB
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-httpx
pkgver=0.23.3
pkgrel=0
pkgdesc="Next generation HTTP client for Python"
url="https://www.python-httpx.org/"
license="BSD-3-Clause"
arch="noarch !armhf !ppc64le" # limited by py3-httpcore
depends="
python3
py3-certifi
py3-httpcore
py3-idna
py3-rfc3986
py3-sniffio
"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest py3-pytest-asyncio py3-pytest-trio py3-socksio py3-trustme uvicorn"
subpackages="$pkgname-doc"
source="https://github.com/encode/httpx/archive/$pkgver/py3-httpx-$pkgver.tar.gz
remove-fancy-pypi-readme.patch
"
builddir="$srcdir/httpx-$pkgver"
options="!check" # cyclic dependency on uvicorn
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/*.whl
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
}
sha512sums="
d4f051578de63e677492727c466d44858c31d1b85441621667d4aeaec5cd2ebd0257a1db115f1b4d77d563359dfc81c2cd1221c0cc66c891b461fa1f4e8a5aee py3-httpx-0.23.3.tar.gz
6ed17a1b32c3d1bc1dd9f138b37f3b31020b3f1c77edb67e99ec73a33b8ae336b12dbe3508268b4ea8bf8f560f4d15ee9dd8efe4fa689e8c03030f6cb0319819 remove-fancy-pypi-readme.patch
"