libvirt-python3: fix tests

This commit is contained in:
Michal Vasilek 2021-11-09 20:17:54 +01:00
parent 1740ab501f
commit 67cfa52b31
1 changed files with 5 additions and 1 deletions

View File

@ -6,10 +6,14 @@ wrksrc="libvirt-python-${version}"
build_style=python3-module build_style=python3-module
hostmakedepends="pkg-config python3-devel libvirt-devel libapparmor-devel" hostmakedepends="pkg-config python3-devel libvirt-devel libapparmor-devel"
makedepends="libvirt-devel python3-devel" makedepends="libvirt-devel python3-devel"
checkdepends="python3-lxml python3-nose" checkdepends="python3-pytest python3-lxml python3-nose"
short_desc="Libvirt virtualization API Python3 binding" short_desc="Libvirt virtualization API Python3 binding"
maintainer="Helmut Pozimski <helmut@pozimski.eu>" maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="LGPL-2.1-or-later" license="LGPL-2.1-or-later"
homepage="https://pypi.org/project/libvirt-python/" homepage="https://pypi.org/project/libvirt-python/"
distfiles="https://libvirt.org/sources/python/libvirt-python-${version}.tar.gz" distfiles="https://libvirt.org/sources/python/libvirt-python-${version}.tar.gz"
checksum=8535cffa5fbf05185648f9f57a2f71899c3bc12c897d320351c53725a48e5359 checksum=8535cffa5fbf05185648f9f57a2f71899c3bc12c897d320351c53725a48e5359
do_check() {
PYTHONPATH="$(cd build/lib.* && pwd)" pytest
}