diff options
Diffstat (limited to 'community/py3-pytest-httpserver/APKBUILD')
-rw-r--r-- | community/py3-pytest-httpserver/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/py3-pytest-httpserver/APKBUILD b/community/py3-pytest-httpserver/APKBUILD new file mode 100644 index 00000000000..d85b00ca45a --- /dev/null +++ b/community/py3-pytest-httpserver/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org> +# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org> +pkgname=py3-pytest-httpserver +pkgver=1.0.10 +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" +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=" +9b207d9849ea85770e879ccc71c0af816a6bb4b4cc962fd7c57ccb4d42139241161aebeae6165c8e8ef1e4c1481be4f1dc0e23460a9c8eab0eadea291d94f229 py3-pytest-httpserver-1.0.10.tar.gz +" |