maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=py3-respx
pkgver=0.22.0
pkgrel=0
pkgdesc="Simple utility for mocking HTTPX Python library"
url="https://lundberg.github.io/respx/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-httpx"
makedepends="py3-setuptools"
checkdepends="
	py3-flask
	py3-pytest
	py3-pytest-asyncio
	py3-starlette
	py3-trio
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/lundberg/respx/archive/refs/tags/$pkgver.tar.gz
	no-pytest-opts.patch
	"
builddir="$srcdir/respx-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
3cc84edced79475764b00369b5926bb5a74627b3f0c966fdf4e96a1a5944b8ea2fccaa39f77ebde62324762cb4ff5e0b611c910093fc3010e8c8e1dbbbe678e3  py3-respx-0.22.0.tar.gz
3f3db61e151d9804f2d2df4796c5cf7d8fe233b102eb9d06bcd8b47d8272256df69bea3bb26f30aa19183bacbe0b824075d669e0d22d64ef1ec28c34d830bf80  no-pytest-opts.patch
"
