swingmusic-git

LOW
maintainer jensgrunzer1 0 votes scanned 2026-11-01 00:21:48.120785
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-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

Report a package

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

0 / 4000
Your suggestion