1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
4 pkgname=python-pytest-qt
7 pkgdesc='pytest support for PyQt and PySide applications'
10 url='https://github.com/pytest-dev/pytest-qt'
11 depends=('python-pytest')
12 makedepends=('python-setuptools-scm')
13 checkdepends=('python-pyqt5' 'pyside2' 'xorg-server-xvfb')
14 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
15 sha512sums=('7f59c499e1395460c2ff20a969cec16ca104f742c648faa0d7eb1528c04d8ee52c04c52798478bc01c5467bee33d3389b141424491ba5442f9df4e82f0dff173')
23 cd ${_name}-$pkgver/src
24 PYTHONPATH=. PYTEST_QT_API=pyqt5 xvfb-run pytest --fixtures pytestqt ../tests
29 python setup.py install -O1 --root="${pkgdir}" --skip-build
30 install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"