From ae9343ce3a7c341196908984dc70d5f41f726f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:35 +0700 Subject: [PATCH] New package: python3-pytest-qt-3.3.0 --- srcpkgs/python3-pytest-qt/template | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/python3-pytest-qt/template diff --git a/srcpkgs/python3-pytest-qt/template b/srcpkgs/python3-pytest-qt/template new file mode 100644 index 00000000000..a15bc15a4f3 --- /dev/null +++ b/srcpkgs/python3-pytest-qt/template @@ -0,0 +1,32 @@ +# Template file for 'python3-pytest-qt' +pkgname=python3-pytest-qt +version=3.3.0 +revision=1 +archs=noarch +wrksrc=pytest-qt-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pytest" +checkdepends="$depends python3-pyside2 python3-PyQt5 python3-pytest-xvfb + xdpyinfo" +short_desc="Pytest support for PyQt and PySide applications" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-qt" +distfiles="${PYPI_SITE}/p/pytest-qt/pytest-qt-${version}.tar.gz" +checksum=714b0bf86c5313413f2d300ac613515db3a1aef595051ab8ba2ffe619dbe8925 + +do_check() { + # testing for some configuration in test_basics.py, + # isn't those 2 below tests are the real test for envvar + # Why does it run just fine? + local _skip='test_qapp_args or test_qt_api_ini_config or test_invalid_qt_api_envvar' + PYTHONPATH=$(pwd)/build/lib QT_QPA_PLATFORM=offscreen \ + PYTEST_QT_API=pyside2 python3 -m pytest -k "not ($_skip)" + PYTHONPATH=$(pwd)/build/lib QT_QPA_PLATFORM=offscreen \ + PYTEST_QT_API=pyqt5 python3 -m pytest -k "not ($_skip)" +} + +post_install() { + vlicense LICENSE +}