[arch-commits] Commit in python-qtpy/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:19:17 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:19:17
Author: felixonmars
Revision: 1057997
archrelease: copy trunk to community-staging-any
Added:
python-qtpy/repos/community-staging-any/
python-qtpy/repos/community-staging-any/PKGBUILD
(from rev 1057996, python-qtpy/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-qtpy/repos/community-staging-any/PKGBUILD (from rev 1057996, python-qtpy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:19:17 UTC (rev 1057997)
@@ -0,0 +1,47 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+_pkgname=qtpy
+pkgname=python-qtpy
+pkgver=1.11.2
+pkgrel=2
+pkgdesc="Provides an uniform layer to support PyQt5 and PySide2 with a single codebase"
+arch=(any)
+url="https://github.com/spyder-ide/qtpy/"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+optdepends=('python-pyqt5: Qt5 Python bindings'
+ 'python-pyqt5-webengine: Qt5-WebEngine python bindings'
+ 'pyside2: PySide Qt5 Python bindings')
+checkdepends=(
+ python-pytest
+ python-mock
+ python-pyqt5
+ python-pyqt5-webengine
+ pyside2
+ qt5-serialport
+ qt5-svg
+ qt5-tools
+ qt5-websockets
+ qt5-xmlpatterns
+ xorg-server-xvfb
+)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('0c93485cff68c02449dcf2b8db413fffd7467da16fa106b18b96d4eff2e68d73')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ xvfb-run --auto-servernum pytest -x qtpy -v -rw
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list