python-pylzma
maintainer Rhinoceros
· 15 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The non-standard host hosts only test data (a .7z file) that is not executed and is used solely for testing; the actual package source comes from GitHub, and the test data's unverifiable checksum does not pose a security risk as it is not installed or run.
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 non-standard host hosts only test data (a .7z file) that is not executed and is used solely for testing; the actual package source comes from GitHub, and the test data's unverifiable checksum does not pose a security risk as it is not installed or run.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:17
https://archive.org/download/stackexchange/ux.stackexchange.com.7z)
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
2
# Contributor: Chih-Hsuan Yen <yan12125@gmail.com>
3
# Contributor: Penguin <TGates81.at.gmail.dot.com>
4
5
_pkgname=pylzma
6
pkgname=python-$_pkgname
7
pkgver=0.6.1
8
pkgrel=1
9
pkgdesc='Platform independent python bindings for the LZMA compression library'
10
url='https://www.joachim-bauch.de/projects/pylzma/'
11
license=("LGPL-2.1-or-later")
12
arch=(i686 x86_64)
13
depends=('python')
14
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
15
source=($_pkgname-$pkgver.tar.gz::https://github.com/fancycode/pylzma/archive/v$pkgver.tar.gz
16
# testing data
17
https://archive.org/download/stackexchange/ux.stackexchange.com.7z)
18
sha256sums=('f223c639d0346b158ca0040440d7d3aa0f39c368f4476db718367d54096c505b'
19
'SKIP')
20
noextract=(ux.stackexchange.com.7z)
21
22
prepare() {
23
cd "$_pkgname-$pkgver"
24
# Create symlink for test data
25
mkdir -p tests/data
26
ln -sf "$srcdir/ux.stackexchange.com.7z" tests/data/ux.stackexchange.com.7z
27
}
28
29
build() {
30
cd "$_pkgname-$pkgver"
31
python -m build --wheel --no-isolation
32
}
33
34
check() {
35
cd "$_pkgname-$pkgver"
36
37
# Install to a temporary directory
38
python -m installer --destdir="$srcdir/test_dir" dist/*.whl
39
40
# Find the site-packages path within that temp directory
41
local _site_packages=$(find "$srcdir/test_dir" -name site-packages -type d -print -quit)
42
43
# Run tests using the temp site-packages
44
PYTHONPATH="$_site_packages:$PWD" python tests/__init__.py
45
}
46
47
package() {
48
cd "$_pkgname-$pkgver"
49
python -m installer --destdir="$pkgdir" dist/*.whl
50
# Install license
51
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
52
}
53
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |