blob: 307be1ed19aead487c4b7944f4a8915f1480975e (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=SeleniumBase
pkgname=python-${_base,,}
pkgdesc="A complete web automation framework for end-to-end testing"
pkgver=4.36.4
pkgrel=1
arch=(any)
url="https://${_base,,}.io"
license=(MIT)
depends=(python-filelock
python-platformdirs
python-fasteners
python-pdbp
python-parse-type
python-colorama
python-yaml
python-pygments
python-idna
python-charset-normalizer
python-urllib3
python-requests
python-sniffio
python-h11
python-outcome
python-trio
python-trio-websocket
python-wsproto
python-websocket-client
python-selenium
python-cssselect
python-sortedcontainers
python-execnet
python-iniconfig
python-pluggy
python-parameterized
python-behave
python-soupsieve
python-beautifulsoup4
python-pyotp
python-xlib
python-markdown-it-py
python-mdurl
python-rich) # python-sbvirtualdisplay python-pynose
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest-rerunfailures selenium-manager chromium)
source=(${_base}-${pkgver}.tar.gz::https://github.com/${_base,,}/${_base}/archive/v${pkgver}.tar.gz)
sha512sums=('99124e473a8a4de03c878e43b75e4893ad28389ffe16bc32f8f52f328a970eb0e359389f67719a40450ec38cb5ae187316064de12d80c29a455f38f80db9d24d')
build() {
cd ${_base}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd ${_base}-${pkgver}
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest \
--browser=chrome \
--headless \
-k 'not run_with_dashboard.py and not simple_cases and not basecase and not run_with_dashboard and not sb_fixture and not request_sb_fixture and not rerun_failures' \
examples/unit_tests/verify_framework.py
}
package() {
cd ${_base}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|