mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-30 01:52:20 +02:00
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=py3-wxpython
|
|
pkgver=4.2.5
|
|
pkgrel=0
|
|
pkgdesc="Cross-platform GUI toolkit for the Python language"
|
|
url="https://wxpython.org/"
|
|
arch="all"
|
|
license="custom:wxWidgets"
|
|
depends="
|
|
python3
|
|
py3-numpy
|
|
py3-pillow
|
|
py3-six
|
|
"
|
|
makedepends="
|
|
cython
|
|
py3-setuptools
|
|
py3-sip
|
|
python3-dev
|
|
waf
|
|
wxwidgets-dev
|
|
"
|
|
checkdepends="py3-pytest py3-pytest-xdist xvfb-run"
|
|
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/w/wxpython/wxpython-$pkgver.tar.gz
|
|
no-stacktrace.patch
|
|
"
|
|
builddir="$srcdir"/wxpython-$pkgver
|
|
# Not all unit tests are passing. Some due to missing features of xvfb where the
|
|
# tests are running in (GL, display settings). Some are checking features that
|
|
# have not been provided in this package. Disabling failing unit tests to track
|
|
# regressions would be nice, but I do not have the time for that now
|
|
options="!check !spdx"
|
|
|
|
build() {
|
|
export CPPFLAGS="$CPPFLAGS -flto=auto"
|
|
# regenerating sip bindings first to match local wxwidgets version,
|
|
# then run build
|
|
python3 build.py sip build_py --use_syswx --release -j${JOBS:-1}
|
|
}
|
|
|
|
check() {
|
|
xvfb-run -a pytest
|
|
}
|
|
|
|
package() {
|
|
python3 build.py install --destdir="$pkgdir"
|
|
install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
|
find "$pkgdir"/usr/lib -type f -exec chmod 644 {} \;
|
|
}
|
|
|
|
lang() {
|
|
pkgdesc="translations for $pkgname"
|
|
install_if="lang $pkgname=$pkgver-r$pkgrel"
|
|
|
|
amove usr/lib/python3*/site-packages/wx/locale
|
|
}
|
|
|
|
sha512sums="
|
|
a094faab4f901e46c6a771168160b0e3fec336e937507fedab97a0645df55671af046e673344a37d3d6997fadcb83c5490a673c2475c200841ef9eb12bc19763 wxpython-4.2.5.tar.gz
|
|
91f056d9fb8b05be565e3a6db5618f388d316563a536eb2aaf3c533e5cb24bce2891e039cdf898874fbce720b6fa735684478c1ff6df0c6decd24603b9d42243 no-stacktrace.patch
|
|
"
|