projects/aports·blob master · refs

37 lines · 1.2 KiB

1# Contributor: Johannes Marbach <[email protected]>
2# Maintainer: Oliver Smith <[email protected]>
3pkgname=py3-pytest-httpserver
4pkgver=1.2.0
5pkgrel=0
6pkgdesc="Http server for pytest to test http clients"
7url="https://github.com/csernazs/pytest-httpserver"
8arch="noarch"
9license="MIT"
10depends="python3 py3-werkzeug"
11makedepends="py3-gpep517 py3-installer py3-poetry-core"
12checkdepends="py3-pytest py3-pytest-runner py3-requests py3-toml"
13subpackages="$pkgname-pyc"
14source="$pkgname-$pkgver.tar.gz::https://github.com/csernazs/pytest-httpserver/archive/$pkgver.tar.gz"
15builddir="$srcdir/pytest-httpserver-$pkgver"
16
17build() {
18 gpep517 build-wheel \
19 --wheel-dir .dist \
20 --output-fd 3 3>&1 >&2
21}
22
23check() {
24 python3 -m venv --clear --without-pip --system-site-packages test-env
25 test-env/bin/python3 -m installer .dist/pytest_httpserver-*.whl
26 test-env/bin/python3 -m pytest \
27 -k 'not test_ipv6' # Ever thought about gardening instead?
28}
29
30package() {
31 python3 -m installer -d "$pkgdir" \
32 .dist/pytest_httpserver-*.whl
33}
34
35sha512sums="
36c4fc70f9f1c9e21947c7460179322b45e44b2b556960e305ad845f7f4683206b8b2880b67ed2554a71f7e8c906bcbd4d96d024d602f098597abd69ad15c88254 py3-pytest-httpserver-1.2.0.tar.gz
37"