swingmusic-git
The pip install is used to install build tools (poetry) for the project's own source code from a trusted index; the package builds from a legitimate git repository and does not execute untrusted remote code.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip install is used to install build tools (poetry) for the project's own source code from a trusted index; the package builds from a legitimate git repository and does not execute untrusted remote code.
1 higher static finding superseded - not the current verdict (shown for transparency)
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:33
pip install -U pip setuptools -
PKGBUILD:34
pip install poetry
PKGBUILD
2 offending line(s) highlighted# Maintainer: jensgrunzer <jensgrunzer@gmail.com>
_pkgname=swingmusic
pkgname="${_pkgname}-git"
pkgrel=1
pkgdesc="Swing Music is a beautiful, self-hosted music player for your local audio files"
arch=(any)
pkgver=r1120.a263736
url="https://swingmx.com/"
license=('MIT')
groups=()
provides=("${_pkgname}")
depends=()
makedepends=('python311' 'yarn' 'glibc' 'libnghttp2' 'icu' 'git')
optdepends=('ffmpeg: audio silence skip feature')
conflicts=()
replaces=()
source=("${_pkgname}::git+https://github.com/swingmx/swingmusic.git"
"swingmusic-client::git+https://github.com/swingmx/webclient")
sha256sums=('SKIP' 'SKIP')
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
python3.11 -m venv poetry
source poetry/bin/activate
cd swingmusic
pip install -U pip setuptools
pip install poetry
cd ../swingmusic-client
yarn install
yarn build --outDir ../swingmusic/client
cd ../swingmusic
# Fixes poetry issue 5250.
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
poetry env use /usr/bin/python3.11
poetry install
# Swing gives error if this is not set. Set to version of repo you cloned.
export SWINGMUSIC_APP_VERSION="${pkgver}"
poetry run python manage.py --build
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 dist/swingmusic -t "${pkgdir}/usr/bin"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |