swingmusic-git

LOW
maintainer jensgrunzer1 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

Low AI review downgraded a static finding 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)
Medium pip install of an external package 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
1# Maintainer: jensgrunzer <jensgrunzer@gmail.com>
2_pkgname=swingmusic
3pkgname="${_pkgname}-git"
4pkgrel=1
5pkgdesc="Swing Music is a beautiful, self-hosted music player for your local audio files"
6arch=(any)
7pkgver=r1120.a263736
8url="https://swingmx.com/"
9license=('MIT')
10groups=()
11provides=("${_pkgname}")
12depends=()
13makedepends=('python311' 'yarn' 'glibc' 'libnghttp2' 'icu' 'git')
14optdepends=('ffmpeg: audio silence skip feature')
15conflicts=()
16replaces=()
17source=("${_pkgname}::git+https://github.com/swingmx/swingmusic.git"
18 "swingmusic-client::git+https://github.com/swingmx/webclient")
19sha256sums=('SKIP' 'SKIP')
20pkgver() {
21 cd "$_pkgname"
22 ( set -o pipefail
23 git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
24 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
25 )
26}
27build() {
28 python3.11 -m venv poetry
29 source poetry/bin/activate
30
31 cd swingmusic
32
33 pip install -U pip setuptools
34 pip install poetry
35
36 cd ../swingmusic-client
37 yarn install
38 yarn build --outDir ../swingmusic/client
39
40 cd ../swingmusic
41 # Fixes poetry issue 5250.
42 export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
43 poetry env use /usr/bin/python3.11
44 poetry install
45 # Swing gives error if this is not set. Set to version of repo you cloned.
46 export SWINGMUSIC_APP_VERSION="${pkgver}"
47 poetry run python manage.py --build
48}
49package() {
50 cd "${srcdir}/${_pkgname}"
51 install -Dm755 dist/swingmusic -t "${pkgdir}/usr/bin"
52 install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
53}
54

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion