python-mempressure

LOW
maintainer ixaxaar 0 votes scanned 2026-10-27 21:48:49.990097
View on AUR
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: kutu OS contributors <release@kutu.so>
2
3pkgname=python-mempressure
4_pkgname=libmempressure
5pkgver=0.2.1
6pkgrel=1
7pkgdesc='Python binding for libmempressure: memory-pressure events from kernel PSI'
8arch=('x86_64' 'aarch64')
9url='https://github.com/kutuso/libmempressure'
10license=('MIT')
11depends=('python' 'glibc')
12makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
13source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
14sha256sums=('4772859a141dc81e989790227ba4265a49d6cb030c1f278381ee6e6e7b1facf1')
15
16build() {
17 cd "$_pkgname-$pkgver"
18 python -m build --wheel --no-isolation
19}
20
21check() {
22 cd "$_pkgname-$pkgver"
23 local stage="$srcdir/stage"
24 python -m installer --destdir="$stage" dist/*.whl
25 printf 'some avg10=0.00 avg60=0.00 avg300=0.00 total=0\nfull avg10=0.00 avg60=0.00 avg300=0.00 total=0\n' \
26 > "$srcdir/psi.fixture"
27 PYTHONPATH="$(echo "$stage"/usr/lib/python3*/site-packages)" python - "$srcdir/psi.fixture" <<'PY'
28import sys
29import mempressure as mp
30assert mp.start(psi_path=sys.argv[1], interval=0.05, hysteresis=1)
31assert mp.current_level() == 0
32assert mp.psi()["some_avg10"] == 0.0
33mp.stop()
34PY
35}
36
37package() {
38 cd "$_pkgname-$pkgver"
39 python -m installer --destdir="$pkgdir" dist/*.whl
40 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41}
42

Scan history

Scanned at (UTC)SeverityRules
2026-10-27 21:48:49 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion