blob: 82d728992a00cb51b3bd08b32de83f6e27d56950 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-async-tkinter-loop
_name=${pkgname#python-}
pkgver=0.10.3
pkgrel=1
epoch=1
pkgdesc="Asynchronous mainloop implementation for tkinter."
arch=('any')
url="https://insolor.github.io/async-tkinter-loop"
license=('MIT')
depends=(
'python'
'tk'
)
makedepends=(
'python-build'
'python-installer'
'python-poetry-core'
'python-wheel'
)
checkdepends=(
'python-customtkinter'
'python-pytest'
'python-pytest-timeout'
'xorg-server-xvfb'
)
source=("$_name-$pkgver.tar.gz::https://github.com/insolor/async-tkinter-loop/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('49cb8d202eb5f31f99c7ba89cade350eafed40673cf3323d686eceaf27b67573')
build() {
cd "$_name-$pkgver"
GIT_DIR='.' python -m build --wheel --no-isolation
}
check() {
cd "$_name-$pkgver"
PYTHONPATH=. dbus-run-session xvfb-run pytest
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|