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-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |