mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-pytest-httpx
|
|
pkgver=0.22.0
|
|
pkgrel=1
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
fd89ce70113608195eb8fa8e3d7465d9d15b5a300e7c00f3c50417ba9b205081671fbda9591bdb16accb1973da00f5d0bede9e73a3351b0652080d4059c5f6d6 py3-pytest-httpx-0.22.0.tar.gz
|
|
"
|