python-whisper-normalizer
LOW
maintainer Smoolak
0 votes
scanned 2026-11-01 20:01:18.389276
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>
2
pkgname=python-whisper-normalizer
3
pkgver=1.0.0
4
pkgrel=1
5
pkgdesc='Multilingual text normalization for speech recognition and synthesis'
6
arch=(any)
7
url='https://github.com/kurianbenoy/whisper_normalizer'
8
license=(MIT)
9
depends=('python>=3.11' python-more-itertools python-regex python-indic-numtowords python-text2num)
10
makedepends=(python-build python-installer 'python-setuptools>=64' python-wheel)
11
checkdepends=(python-num2words)
12
optdepends=('python-num2words: spell out numbers in text-to-speech mode')
13
_commit=3b432f6bdb1ad8179a34e84a8ce4087eb9d7ab02
14
source=("whisper-normalizer-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
15
check-notebooks.py)
16
sha256sums=('cbb3c8ecb6ce18f6591e980ad79175ab4f79f60419d2827e2c487e680ea44fdc'
17
'b9df1508f202a9316e0bcda8c80d137a355ebbab979e69f142af62d1654620a3')
18
19
prepare() {
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]
25
whisper_normalizer = ["normalizers/*.json"]
26
PYPROJECT
27
}
28
29
build() {
30
cd "whisper_normalizer-$_commit"
31
python -m build --wheel --no-isolation
32
}
33
34
check() {
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
43
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-11-01 20:01:18 | Low | 1 |