# Contributor: Keith Maxwell # Maintainer: Keith Maxwell pkgname=py3-pytest-localserver _pyname=pytest-localserver pkgver=0.7.1 pkgrel=1 pkgdesc="a pytest plugin to test server connections locally" url="https://github.com/pytest-dev/pytest-localserver" arch="noarch" license="MIT" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends="py3-pytest py3-six py3-requests py3-werkzeug" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/p/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" fd32ea020152a17fb1dcfe3f5cccd5c2a26eed18b711f51c5c7cb8534862706e6738651c275e88f3cbad54ecdb59e4b5588e67eed0ff3bbf20c3636e97990ed6 pytest-localserver-0.7.1.tar.gz "