# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=py3-httpx pkgver=0.24.1 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-sniffio " makedepends="py3-gpep517 py3-hatchling" checkdepends="py3-pytest py3-pytest-asyncio py3-pytest-trio py3-socksio py3-trustme uvicorn" subpackages="$pkgname-doc $pkgname-pyc" 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=" 056741ef4e356f13adfcb66766489b39e79dbf4264d9780b8788c0934f7f3ff1a9b6bcb396a9f146e88315831f5399cebdd537c5a39c86b9b6bac3600d5560b6 py3-httpx-0.24.1.tar.gz cd6107db2fb6123ad952537cef8b45c7896cf370807ad79c1ca355aee8e0fb32718db5de4c12075da2126d9e47d915ed30c40a9fe6aebe5aa04d33c9e99c1d9c remove-fancy-pypi-readme.patch "