mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-14 21:22:03 +01:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
|
|
pkgname=py3-pytest-httpserver
|
|
pkgver=1.0.8
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/pytest_httpserver-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
6061e1a9daa7b5dafe1e53087865ab505e2c4d480617f2cafe7e95e51d1502679de640079967c7865a29f280662ff136bfd3cabc7161cc748b29ecd41e8bc85a py3-pytest-httpserver-1.0.8.tar.gz
|
|
"
|