python-expecttest
LOW
maintainer Smoolak
0 votes
scanned 2026-09-21 19:35:51.541891
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Smoolak <smoolak@gmail.com>
2
3
pkgname=python-expecttest
4
pkgver=0.3.0
5
pkgrel=1
6
pkgdesc='Python library for expect-style testing'
7
arch=('any')
8
url='https://github.com/ezyang/expecttest'
9
license=('MIT')
10
depends=('python')
11
makedepends=(
12
'python-build'
13
'python-installer'
14
'python-poetry-core'
15
)
16
checkdepends=(
17
'python-hypothesis'
18
)
19
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
20
sha256sums=('e35ef2df7f97071c735a93612bfeb4d60b1c5f0990656bccffaf81b917cab09b')
21
22
build() {
23
cd "expecttest-$pkgver"
24
python -m build --wheel --no-isolation
25
}
26
27
check() {
28
local _source_dir="$srcdir/expecttest-$pkgver"
29
local _test_dir="$srcdir/test-work"
30
local _test_venv="$srcdir/test-venv"
31
32
rm -rf "$_test_dir" "$_test_venv"
33
mkdir -p "$_test_dir"
34
cp "$_source_dir/test_expecttest.py" "$_test_dir/"
35
cp -a "$_source_dir/smoketests" "$_test_dir/"
36
37
python -m venv --system-site-packages "$_test_venv"
38
"$_test_venv/bin/python" -m installer "$_source_dir"/dist/*.whl
39
cd "$_test_dir"
40
PYTHONDONTWRITEBYTECODE=1 "$_test_venv/bin/python" test_expecttest.py
41
}
42
43
package() {
44
cd "expecttest-$pkgver"
45
python -m installer --destdir="$pkgdir" dist/*.whl
46
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-21 19:35:51 | Low | 1 |