summaryrefslogtreecommitdiff
path: root/testing/py3-pyautogui/APKBUILD
blob: 8d723d89abfda4f5c82a4d5baa68d26a4952e1ef (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer:
pkgname=py3-pyautogui
_pkgname=PyAutoGUI
# upstream does not tag releases https://github.com/asweigart/pyautogui/issues/270
_commit=9de7b3ebf8817a846b03caec0775ecbf4596452b
pkgver=0.9.53
pkgrel=2
pkgdesc="A cross-platform Python module for GUI automation for human beings"
url="https://pyautogui.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-pillow
	py3-pymsgbox
	py3-pyscreeze
	py3-pytweening
	py3-xlib
	python3
	"
makedepends="py3-setuptools"
checkdepends="xvfb-run"
source="$_pkgname-$_commit.tar.gz::https://github.com/asweigart/pyautogui/archive/$_commit.tar.gz"
builddir="$srcdir/pyautogui-$_commit"
options="!check" # hang forever

replaces="py-pyautogui" # Backwards compatibility
provides="py-pyautogui=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD" \
	xvfb-run -a \
	python3 tests/test_pyautogui.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
afa4d3fde6a79d6946c520c536d64d5f76ae7982eb7a5ed4dd0c86bececc232a0e08e25705dc8cd184876ae24b8630fb0721042ee9653533798617344b0bf945  PyAutoGUI-9de7b3ebf8817a846b03caec0775ecbf4596452b.tar.gz
"