# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-pytest-httpx pkgver=0.21.3 pkgrel=0 pkgdesc="send responses to httpx" url="https://colin-b.github.io/pytest_httpx/" arch="all !armhf !ppc64le" #limited by py3-httpx license="MIT" depends="py3-httpx py3-pytest" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest-asyncio" source="$pkgname-$pkgver.tar.gz::https://github.com/Colin-b/pytest_httpx/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/pytest_httpx-$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 testenv/bin/python3 -m installer dist/*.whl #deselected tests fail on [b''] not equal to [] testenv/bin/python3 -m pytest \ --deselect tests/test_httpx_async.py::test_default_response_streaming \ --deselect tests/test_httpx_sync.py::test_default_response_streaming } package() { python3 -m installer -d "$pkgdir" dist/*.whl } sha512sums=" 8c25a702b9c049354a0f0b232eefeae5ac0c47764af023c89aba6829309971a1d79a0dab3e4d6275a6bf0f32f3a8309c9559eb22c9b742a6576ecea37ff0d15d py3-pytest-httpx-0.21.3.tar.gz "