python-kubernetes-asyncio

CLEAN
maintainer Smoolak 0 votes scanned 2026-09-21 00:26:32.109917
View on AUR

Triggered rules

Clean AI review downgraded a static finding llm_review

The static rules flagged this LOW, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it CLEAN (confidence 95%): The package builds from a verifiable source tarball hosted on GitHub, uses standard Python build tools, and includes reasonable tests; the low-vote and recent upload are not indicative of malicious intent.

1 higher static finding superseded - not the current verdict (shown for transparency)
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
3pkgname=python-kubernetes-asyncio
4_pkgname=kubernetes_asyncio
5pkgver=36.1.0
6pkgrel=1
7pkgdesc='Asynchronous Python client for Kubernetes'
8arch=('any')
9url='https://github.com/tomplus/kubernetes_asyncio'
10license=('Apache-2.0')
11depends=(
12 'python-aiohttp>=3.9'
13 'python-certifi'
14 'python-dateutil'
15 'python-six'
16 'python-urllib3'
17 'python-yaml'
18)
19makedepends=(
20 'python-build'
21 'python-hatchling'
22 'python-installer'
23 'python-wheel'
24)
25checkdepends=(
26 'python-pytest'
27 'python-pytest-cov'
28 'python-pytest-xdist'
29)
30_commit=7ddbf3037cdb0f9a152c9f0c06e003fc5fc98db5
31source=("$pkgname-$pkgver.tar.gz::https://github.com/tomplus/kubernetes_asyncio/archive/$_commit.tar.gz")
32sha256sums=('f8e94052e9968a0bacb6e7f8ecf585bf64750812208311ff44bf5a3f906c07e4')
33
34build() {
35 cd "$_pkgname-$_commit"
36 python -m build --wheel --no-isolation
37}
38
39check() {
40 cd "$_pkgname-$_commit"
41 local check_install="$srcdir/check-install"
42 local site_packages
43 rm -rf "$check_install"
44 python -m installer --destdir="$check_install" dist/*.whl
45 site_packages=$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')
46
47 PYTHONPATH="$check_install$site_packages" \
48 python -P -m pytest -vv --import-mode=importlib kubernetes_asyncio/test
49
50 PYTHONPATH="$check_install$site_packages" python -P - <<'PY'
51import asyncio
52
53from kubernetes_asyncio import client
54
55async def workflow():
56 container = client.V1Container(name="trainer", image="example.invalid/train:1")
57 pod = client.V1Pod(
58 metadata=client.V1ObjectMeta(name="cpu-training", labels={"app": "trainer"}),
59 spec=client.V1PodSpec(containers=[container], restart_policy="Never"),
60 )
61 async with client.ApiClient() as api_client:
62 serialized = api_client.sanitize_for_serialization(pod)
63 assert serialized["metadata"]["name"] == "cpu-training"
64 assert serialized["spec"]["containers"][0]["image"].endswith("train:1")
65 assert serialized["spec"]["restartPolicy"] == "Never"
66
67asyncio.run(workflow())
68PY
69}
70
71package() {
72 cd "$_pkgname-$_commit"
73 python -m installer --compile-bytecode=1 --destdir="$pkgdir" dist/*.whl
74 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
75 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
76}
77

Scan history

Scanned at (UTC)SeverityRules
2026-09-21 00:26:32 Clean 2
2026-09-20 23:33:19 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