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

Felix Yan felixonmars at archlinux.org
Mon Oct 12 10:46:58 UTC 2020


    Date: Monday, October 12, 2020 @ 10:46:57
  Author: felixonmars
Revision: 723594

archrelease: copy trunk to community-any

Added:
  python-qasync/repos/community-any/
  python-qasync/repos/community-any/PKGBUILD
    (from rev 723593, python-qasync/trunk/PKGBUILD)

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

Copied: python-qasync/repos/community-any/PKGBUILD (from rev 723593, python-qasync/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-10-12 10:46:57 UTC (rev 723594)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: gmes78 <gmes.078 at gmail dot com>
+
+pkgname=python-qasync
+pkgver=0.9.4
+pkgrel=1
+pkgdesc="Python library for using asyncio in Qt-based applications"
+arch=(any)
+url="https://github.com/CabbageDevelopment/qasync"
+license=('BSD')
+depends=('python' 'qt5-python-bindings')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pyqt5' 'pyside2' 'xorg-server-xvfb')
+source=("https://github.com/CabbageDevelopment/qasync/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=("90150364c838c3de760238ef8e7052c428cfd3167e39ec4f3e4d1ecff69b66c0c12130e73ed478148bbe388507fd405e2f83f7f54c05411361bf4ed8231cc2b1")
+
+build() {
+  cd qasync-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd qasync-$pkgver
+  QT_API=PyQt5 xvfb-run python -m pytest
+  # https://github.com/CabbageDevelopment/qasync/issues/11
+  QT_API=PySide2 xvfb-run python -m pytest || :
+}
+
+package() {
+  cd qasync-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}


More information about the arch-commits mailing list