35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'python3-QtPy'
|
|
pkgname=python3-QtPy
|
|
version=1.9.0
|
|
revision=4
|
|
wrksrc=QtPy-${version}
|
|
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="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/spyder-ide/qtpy"
|
|
distfiles="${PYPI_SITE}/Q/QtPy/QtPy-${version}.tar.gz"
|
|
checksum=2db72c44b55d0fe1407be8fba35c838ad0d6d3bb81f23007886dc1fc0f459c8d
|
|
|
|
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
|
|
}
|