1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-pytest-httpserver/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

35 lines
1.1 KiB
Text

# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=py3-pytest-httpserver
pkgver=1.0.6
pkgrel=1
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"
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="
5eacfbf159f3a09d73f54da8f3ff885b8d2138e430af27df6039a30e63d7ebcbcf088efe8e7fa56ed50b66ea5b7e3ad7a61c0e8a57d5cb100c2a063df7b6f5c4 py3-pytest-httpserver-1.0.6.tar.gz
"