31 lines
1020 B
Bash
31 lines
1020 B
Bash
# Template file for 'python3-pytest-xvfb'
|
|
pkgname=python3-pytest-xvfb
|
|
version=2.0.0
|
|
revision=3
|
|
wrksrc=pytest-xvfb-${version}
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-pytest>=2.8.1 python3-PyVirtualDisplay xorg-server-xvfb xauth"
|
|
checkdepends="python3-pytest python3-PyVirtualDisplay xorg-server-xvfb xauth"
|
|
short_desc="Pytest plugin to run Xvfb for tests"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/The-Compiler/pytest-xvfb"
|
|
distfiles="${PYPI_SITE}/p/pytest-xvfb/pytest-xvfb-${version}.tar.gz
|
|
https://raw.githubusercontent.com/The-Compiler/pytest-xvfb/1547abc56ce7e2858ec14a188a7888d21e02aaa8/LICENSE"
|
|
checksum="c4ba642de05499940db7f65ee111621939be513e3e75c3da9156b7235e2ed8cf
|
|
8ec59e555baa977451b5c15d5d2e528128b076832b4a3989386347596b239a0f"
|
|
skip_extraction="LICENSE"
|
|
|
|
post_extract() {
|
|
cp "$XBPS_SRCDISTDIR/$pkgname-$version/LICENSE" .
|
|
}
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|