blob: 95698c84a81344837de9d79dd6ad521de12c937d (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pexpect
_pkgname=pexpect
pkgver=4.8.0
pkgrel=5
pkgdesc="Make Python a better tool for controlling and automating other programs"
url="http://pexpect.readthedocs.org/en/stable"
arch="noarch"
license="ISC"
depends="python3 py3-ptyprocess"
makedepends="py3-setuptools"
checkdepends="py3-pytest bash coreutils"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pexpect/$_pkgname/archive/$pkgver.tar.gz
python3.11.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-pexpect" # Backwards compatibility
provides="py-pexpect=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
# tests that don't expect ansi colors
_tests_colors="not test_async_replwrap_multiline and not REPLWrapTestCase"
# tests that have 'python' hardcoded
_tests_py2="not test_100000 and not test_run_exit"
python3 -m pytest -k "$_tests_colors and $_tests_py2"
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
f141e1368ceea15209b04555a524443cd9cf36d4a3677b63f7a2b079d41aae3fb8656612772732f4097b803c55a05f9bb7e3b427d11ae5357666406669ae6867 py3-pexpect-4.8.0.tar.gz
9bf8e561b98bff658fcb32533fc294a497fb302acdbbf851ed49dfc90c4554f3fd8690e7ce3d60f20755195a4f3e8f5b6ed61f059f0abd4764a7ee585dc9a364 python3.11.patch
"
|