# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-qtpy _pkgorig=qtpy pkgver=2.3.1 pkgrel=1 pkgdesc="QtPy: Abstraction layer for PyQt5/PySide2/PyQt6/PySide6" url="https://github.com/spyder-ide/qtpy" arch="noarch" license="MIT" depends="python3 py3-packaging" checkdepends="python3-dev py3-pytest py3-pytest-cov py3-pytest-qt py3-qt5 xvfb-run" makedepends="py3-setuptools py3-wheel" subpackages="$pkgname-pyc" source="https://github.com/spyder-ide/qtpy/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/qtpy-$pkgver" build() { python3 setup.py build } check() { xvfb-run -a python3 -m pytest -k 'not test_qtlocation and not test_qtpositioning and not test_qtsql and not test_qttexttospeech and not test_qtxmlpatterns' } package() { python3 setup.py install --skip-build --root="$pkgdir" rm -r "$pkgdir"/usr/lib/python3.*/site-packages/qtpy/tests } sha512sums=" 30c542096d9d9c2d830947e3f7d817c5de9f9a45ef0e52e1f1d1887bea8fe0626d374a096ba2897cc6dcd6da7fe125ee9d6463fbebb491eb2214dc5ad60fc4b8 qtpy-2.3.1.tar.gz "