34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'python3-QtPy'
|
|
pkgname=python3-QtPy
|
|
version=2.3.0
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
# depends on any of PySide2 PyQt5
|
|
depends="python3"
|
|
checkdepends="python3-pytest python3-mock python3-pyside2-webengine
|
|
python3-PyQt5-sql python3-PyQt5-svg python3-PyQt5-webengine
|
|
python3-PyQt5-websockets python3-PyQt5-xmlpatterns python3-PyQt5-quick
|
|
python3-PyQt5-multimedia python3-PyQt5-location python3-PyQt5-tools"
|
|
short_desc="Abstraction layer on top of various Python Qt bindings"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/spyder-ide/qtpy"
|
|
distfiles="${PYPI_SITE}/Q/QtPy/QtPy-${version}.tar.gz"
|
|
checksum=0603c9c83ccc035a4717a12908bf6bc6cb22509827ea2ec0e94c2da7c9ed57c5
|
|
|
|
post_patch() {
|
|
# Both of those tests are failing inside chroot,
|
|
# but success outside of chroot
|
|
rm -f qtpy/tests/test_patch_qcombobox.py
|
|
}
|
|
|
|
do_check() {
|
|
CI=1 QT_API=PyQt5 FORCE_QT_API=PyQt5 pytest -k 'not test_load_ui'
|
|
CI=1 QT_API=PySide2 FORCE_QT_API=PySide2 pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|