python-whisper-normalizer

LOW
maintainer Smoolak 0 votes scanned 2026-11-01 20:01:18.389276
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Smoolak <smoolak@gmail.com>
2pkgname=python-whisper-normalizer
3pkgver=1.0.0
4pkgrel=1
5pkgdesc='Multilingual text normalization for speech recognition and synthesis'
6arch=(any)
7url='https://github.com/kurianbenoy/whisper_normalizer'
8license=(MIT)
9depends=('python>=3.11' python-more-itertools python-regex python-indic-numtowords python-text2num)
10makedepends=(python-build python-installer 'python-setuptools>=64' python-wheel)
11checkdepends=(python-num2words)
12optdepends=('python-num2words: spell out numbers in text-to-speech mode')
13_commit=3b432f6bdb1ad8179a34e84a8ce4087eb9d7ab02
14source=("whisper-normalizer-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
15 check-notebooks.py)
16sha256sums=('cbb3c8ecb6ce18f6591e980ad79175ab4f79f60419d2827e2c487e680ea44fdc'
17 'b9df1508f202a9316e0bcda8c80d137a355ebbab979e69f142af62d1654620a3')
18
19prepare() {
20 cd "whisper_normalizer-$_commit"
21 # The spelling normalizer loads this table through importlib.resources.
22 cat >> pyproject.toml <<'PYPROJECT'
23
24[tool.setuptools.package-data]
25whisper_normalizer = ["normalizers/*.json"]
26PYPROJECT
27}
28
29build() {
30 cd "whisper_normalizer-$_commit"
31 python -m build --wheel --no-isolation
32}
33
34check() {
35 cd "whisper_normalizer-$_commit"
36 python -m installer --destdir="$srcdir/check" dist/*.whl
37 local site_packages=("$srcdir"/check/usr/lib/python*/site-packages)
38 # Run upstream notebook assertions with the built modules. Only nbdev
39 # documentation/export cells are omitted, including notebook index rendering.
40 PYTHONPATH="${site_packages[0]}" python -P "$srcdir/check-notebooks.py"
41}
42
43package() {
44 cd "whisper_normalizer-$_commit"
45 python -m installer --destdir="$pkgdir" dist/*.whl
46 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47}
48

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 20:01:18 Low 1

Report a package

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

0 / 4000
Your suggestion