1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 02:05:16 +03:00
aports/community/py3-qtpy/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
1.1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-qtpy
_pkgorig=qtpy
pkgver=2.3.0
pkgrel=2
pkgdesc="QtPy: Abstraction layer for PyQt5/PySide2/PyQt6/PySide6"
url="https://github.com/spyder-ide/qtpy"
arch="noarch"
license="MIT"
depends="python3 py3-packaging"
checkdepends="python3-dev py3-pytest py3-pytest-cov py3-pytest-qt py3-qt5 xvfb-run"
makedepends="py3-setuptools py3-wheel"
source="https://github.com/spyder-ide/qtpy/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/qtpy-$pkgver"
build() {
python3 setup.py build
}
check() {
xvfb-run -a python3 -m pytest -k 'not test_qtlocation and not test_qtpositioning and not test_qtsql and not test_qttexttospeech and not test_qtxmlpatterns'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/qtpy/tests
}
sha512sums="
eeaba0cf813b5de46828ab7270b15337bdd09084f1d13ca922d2cc6279a92fe9f6949e0ea0ee740bced1e1d53680ab4d74c553957ae1def2c381a0fd146d66e0 qtpy-2.3.0.tar.gz
"