[arch-commits] Commit in python-pytest-qt/repos (community-any community-any/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Mon Dec 16 08:33:07 UTC 2019


    Date: Monday, December 16, 2019 @ 08:33:06
  Author: jelle
Revision: 371561

archrelease: copy trunk to community-any

Added:
  python-pytest-qt/repos/community-any/
  python-pytest-qt/repos/community-any/PKGBUILD
    (from rev 371560, python-pytest-qt/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-pytest-qt/repos/community-any/PKGBUILD (from rev 371560, python-pytest-qt/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-12-16 08:33:06 UTC (rev 371561)
@@ -0,0 +1,31 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_name=pytest-qt
+pkgname=python-pytest-qt
+pkgver=3.3.0
+pkgrel=2
+pkgdesc='pytest support for PyQt and PySide applications'
+arch=(any)
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-qt'
+depends=('python-pytest')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pyqt5' 'pyside2' 'xorg-server-xvfb')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('8b3ce7b62621c55fb319966b162cb60663c5ef290f34e62e6a9329e67f530c2bde1329ae0b045b15c99ae14f5f6a5fef9ee930475fa700922c50ee725adf7983')
+
+build() {
+  cd ${_name}-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd ${_name}-$pkgver
+  PYTHONPATH=. PYTEST_QT_API=pyqt5 xvfb-run pytest --fixtures pytestqt .
+}
+
+package() {
+  cd ${_name}-$pkgver
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list