mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
pkgname=py3-pytest-httpserver
|
|
pkgver=1.1.3
|
|
pkgrel=0
|
|
pkgdesc="Http server for pytest to test http clients"
|
|
url="https://github.com/csernazs/pytest-httpserver"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-werkzeug"
|
|
makedepends="py3-gpep517 py3-installer py3-poetry-core"
|
|
checkdepends="py3-pytest py3-pytest-runner py3-requests py3-toml"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/csernazs/pytest-httpserver/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-httpserver-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 -m installer .dist/pytest_httpserver-*.whl
|
|
test-env/bin/python3 -m pytest \
|
|
-k 'not test_ipv6' # Ever thought about gardening instead?
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/pytest_httpserver-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
153312116597a554924adfff3fe2dde7b6bb8a6004ff7f87320d1ef990b61d6cf55585432b3c4c3b6c7bde507b37dd083fd1e9b1893c978ae72397498cd6ac1a py3-pytest-httpserver-1.1.3.tar.gz
|
|
"
|