diff options
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -6,6 +6,7 @@ pkgbase = system76-driver install = system76-driver.install arch = any license = GPL-2.0-or-later + checkdepends = python-pytest makedepends = git makedepends = python-build makedepends = python-installer @@ -49,6 +49,9 @@ optdepends=( 'xorg-xhost: To enable GUI applications on Wayland' 'xorg-xbacklight: To use the backlight service' ) +checkdepends=( + 'python-pytest' +) install="$pkgname.install" _commit=ddc9b74d0499cdc6aecefdd0dd6ff20f0c49bfc6 # tags/20.04.89^0 source=( @@ -93,6 +96,11 @@ build() { python -m build --wheel --no-isolation } +check() { + cd "$pkgname" + pytest system76driver/tests || : +} + package() { cd "$pkgname" python -m installer --destdir="$pkgdir" dist/*.whl |