blob: b644e8b44cb290a8846a3e1272b714f8b689da1b (
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
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Misaka13514 <Misaka13514 at gmail dot com>
# Co-Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: PumpkinCheshire <me at pumpkincheshire dot top>
# Contributor: Jack Rubacha <rubacha.jack03@gmail.com>
# Contributor: Clemmitt M. Sigler <cmsigler dot online at gmail dot com>
# Contributor: xantares
pkgname=python-pyautogui
_name=PyAutoGUI
pkgver=0.9.54
pkgrel=3
pkgdesc="A cross-platform GUI automation Python module for human beings"
arch=('any')
url="https://github.com/asweigart/pyautogui"
license=('BSD-3-Clause')
depends=(
'python-mouseinfo'
'python-pymsgbox'
'python-pyscreeze'
'python-pytweening'
'python-xlib'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
# 'python-sphinx' ## docs
'python-wheel'
)
#checkdepends=(
# 'python-pytest'
# 'xorg-server-xvfb'
#)
optdepends=(
'scrot: screenshot tool'
'tk: windowing tool kit'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('dd1d29e8fd118941cb193f74df57e5c6ff8e9253b99c7b04f39cfc69f3ae04b2')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
#check() {
# cd "$_name-$pkgver"
# PYTHONPATH=. xvfb-run pytest || :
#}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|