blob: 4b6667ddc089d30ae56a7b219836845ff6d1ec59 (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Maintainer: Anton Kudelin <kudelin at proton dot me>
# Contributor: Jelle van der Waa <jelle@vdwaa.nl>
# Contributor: Aaron DeVore <aaron.devore@gmail.com>
_pyname=selenium
_suffix=-python
pkgname=python-$_pyname
pkgver=4.17.2
pkgrel=1
pkgdesc="Python language bindings for Selenium WebDriver"
arch=(any)
url="https://www.selenium.dev"
license=(Apache)
depends=(python python-urllib3 python-certifi python-trio
python-trio-websocket)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest)
source=("https://github.com/SeleniumHQ/${_pyname}/archive/refs/tags/${_pyname}-${pkgver}${_suffix}.tar.gz")
sha256sums=('ba9222c983fa34eb03b8847515bf0c170bf12e89ad291e859e0bf05f183e540a')
options=(!makeflags)
prepare() {
cd "${srcdir}/${_pyname}-${_pyname}-${pkgver}${_suffix}/py"
cp ../rb/lib/$_pyname/webdriver/atoms/* $_pyname/webdriver/remote
echo '{"frozen":{},"mutable":{}}' > \
$_pyname/webdriver/firefox/webdriver_prefs.json
}
build() {
cd "${srcdir}/${_pyname}-${_pyname}-${pkgver}${_suffix}/py"
python -m build \
--wheel \
--no-isolation \
--skip-dependency-check
}
check() {
cd "${srcdir}/${_pyname}-${_pyname}-${pkgver}${_suffix}/py"
python -m pytest
}
package() {
cd "${srcdir}/${_pyname}-${_pyname}-${pkgver}${_suffix}/py"
python -m installer \
--destdir="$pkgdir" \
--compile-bytecode=2 \
dist/*.whl
}
|