28 lines
933 B
Bash
28 lines
933 B
Bash
# Template file for 'python3-pytest-httpserver'
|
|
pkgname=python3-pytest-httpserver
|
|
version=1.0.5
|
|
revision=2
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-poetry-core"
|
|
depends="python3-pytest python3-Werkzeug"
|
|
checkdepends="${depends} python3-MarkupSafe python3-requests"
|
|
short_desc="HTTP server for pytest"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="MIT"
|
|
homepage="https://www.github.com/csernazs/pytest-httpserver"
|
|
changelog="https://raw.githubusercontent.com/csernazs/pytest-httpserver/master/CHANGES.rst"
|
|
distfiles="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${version}.tar.gz"
|
|
checksum=932843df9fa584e6a664b2e7a21dec4ddf9507c235a78853f21e00b111352395
|
|
|
|
do_check() {
|
|
rm -rf tmp # remove artifacts from previous unsuccessful check run
|
|
mkdir tmp
|
|
bsdtar xf dist/pytest_httpserver-$version-py3-none-any.whl -C tmp
|
|
PYTHONPATH=tmp pytest tests
|
|
rm -rf tmp
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|