# Template file for 'python3-QtPy' pkgname=python3-QtPy version=2.4.1 revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools python3-wheel" # depends on either of PyQt5, PyQt6 depends="python3" # check dependencies common to both PyQt5 and PyQt6 _qtcommon=":connectivity :multimedia :sensors :serialport :sql :svg :tools :webchannel :webengine :websockets" # check dependencies only for PyQt5 _qt5check="${_qtcommon} :location :opengl :quick :x11extras :xmlpatterns qt5-plugin-sqlite" # check dependencies only for PyQt6 _qt6check="${_qtcommon} :dbus :declarative :devel-tools :gui :network :opengl-widgets :printsupport :quick3d :remoteobjects :test :widgets :xml qt6-plugin-sqlite" checkdepends="python3-pytest-cov python3-pytest-qt liberation-fonts-ttf ${_qt5check//:/python3-PyQt5-} ${_qt6check//:/python3-pyqt6-}" short_desc="Abstraction layer on top of various Python Qt bindings" maintainer="Gonzalo TornarĂ­a " license="MIT" homepage="https://github.com/spyder-ide/qtpy" changelog="https://raw.githubusercontent.com/spyder-ide/qtpy/master/CHANGELOG.md" distfiles="${PYPI_SITE}/Q/QtPy/QtPy-${version}.tar.gz" checksum=a5a15ffd519550a1361bdc56ffc07fda56a6af7292f17c7b395d4083af632987 do_check() { local qtapi for qtapi in pyqt5 pyqt6; do msg_normal "... running pytest with QT_API=$qtapi\n" FORCE_QT_API=1 QT_API="${qtapi}" \ python3 -m pytest -k 'not test_qttexttospeech' done } post_install() { vlicense LICENSE.txt }