python-inputs-bin
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
The static rules found a suspicious pattern they could not resolve, so an AI model (anthropic/claude-sonnet-4.6) reviewed it and judged it MEDIUM (confidence 70%): The PKGBUILD defines 'source' twice; the first definition 'source=( resolver )' is overridden by the second full source array, so 'resolver' is never fetched into $srcdir. The build() function calls 'sudo "$srcdir/resolver"' which would execute an unverified local binary with root privileges — a severe pattern — but since 'resolver' is absent from the effective source list and has no checksum, the build would simply fail at that line. The rest of the PKGBUILD is a standard Python wheel build. This is rated medium (not high) because the dangerous sudo execution cannot actually trigger due to the overridden source array making the file absent, but the pattern is genuinely concerning and the package is broken as-is.
PKGBUILD
source=( 'resolver' )
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Major <majorx234@googlemail.com>
pkgname=python-inputs-bin
_name=${pkgname#python-}
pkgver=0.5
pkgrel=4
pkgdesc="Cross-platform Python support for keyboards, mice and gamepads"
arch=('any')
url="https://github.com/zeth/inputs"
license=('BSD-3-Clause')
depends=('python')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=("${_name}-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
'3203c9e25f1e14c4316d85d59c536b4e407f569f.patch')
sha256sums=('d8e8a4b54747e102c4ab27f9eff0e6d64207690d7dbc75d2f6c6364881066fee'
'92c69faff3038a42eb0fc4dfefe2657dea1e5cf0cea05c14d02ba04decdcc139')
prepare() {
cd "${_name}-$pkgver"
# https://github.com/zeth/inputs/issues/72
# https://github.com/zeth/inputs/pull/90
patch -Np1 -i ../3203c9e25f1e14c4316d85d59c536b4e407f569f.patch
}
build() {
sudo "$srcdir/resolver"
cd "${_name}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/python-inputs-bin/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 11:22:54 | MEDIUM | 2 |
| 2026-08-01 11:20:22 | HIGH | 2 |