python-unidic
maintainer atticf
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a data archive from a non-whitelisted host, but it is used only as offline dictionary data for a Python library and is not executable; the worst case is data tampering, not code execution.
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 package downloads a data archive from a non-whitelisted host, but it is used only as offline dictionary data for a Python library and is not executable; the worst case is data tampering, not code execution.
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:27
"https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Attila Fidan <archlinux-buildsystem@print0.net>
2
3
pkgname=python-unidic
4
_pypkgname=unidic-py
5
pkgver=1.1.0.unidic3.1.0
6
_projver=${pkgver%.unidic3.1.0}
7
8
pkgrel=5
9
pkgdesc="UniDic for Contemporary Written Japanese packaged for use with pip (with UniDic 3.1.0)"
10
url="https://github.com/polm/unidic-py"
11
license=(
12
BSD-3-Clause
13
MIT
14
)
15
arch=(any)
16
17
depends=(
18
python
19
python-plac
20
python-tqdm
21
python-wasabi
22
)
23
makedepends=(python-setuptools)
24
25
source=(
26
"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$_projver.tar.gz"
27
"https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip"
28
)
29
b2sums=('d4dedd082559410ed668282c3bc5ea2a8d7d7b51ea78b1cb6125358ca9ead943d76cd65580cd1ff2f9a7e1f8cce6ee550a9d53bafb9936d2d56742fb9b67ed2b'
30
'becbaf46ac8c210b47461843e8daa2b07681664881d7cb849e4825f37569101e605015eb975390aec123f525550d4eeed4843f811c71a0977da1aa5431b616a9')
31
32
33
build(){
34
cd "$_pypkgname-$_projver"
35
python setup.py build
36
}
37
38
package(){
39
cd "$_pypkgname-$_projver"
40
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
41
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
42
install -Dm644 LICENSE.unidic -t "$pkgdir/usr/share/licenses/$pkgname/"
43
44
# reimplement https://github.com/polm/unidic-py/blob/master/unidic/download.py for offline use
45
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
46
cd "$srcdir"/unidic
47
find . -type f -exec install -Dm644 "{}" "$pkgdir/usr/lib/python$python_version/site-packages/unidic/dicdir/{}" \;
48
echo "# This is a dummy file." > "$pkgdir/usr/lib/python$python_version/site-packages/unidic/dicdir/mecabrc"
49
}
50
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 |