python-monotonic-align
LOW
maintainer Smoolak
0 votes
scanned 2026-11-02 02:02:07.595282
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-monotonic-align
3
pkgver=1.2
4
pkgrel=1
5
pkgdesc='Cython monotonic alignment search with PyTorch tensor interfaces'
6
arch=('x86_64')
7
url='https://github.com/resemble-ai/monotonic_align'
8
license=('MIT')
9
depends=('python' 'python-numpy' 'python-pytorch' 'glibc')
10
makedepends=('cython' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
11
options=('!strip')
12
_commit=c6e5e6cb19882164027eb6e35118e841eed9298e
13
source=("monotonic_align-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz"
14
'check_alignment.py')
15
sha256sums=('c8b43fb1dffa08da65b9d45901e020139ec579234e249872b7f3b77dc801277a'
16
'7f4abb6ee75d2875ed93b8d69f889d3ec4824479d0b75e5c5a41ec6997fc3bb7')
17
18
build() {
19
cd "monotonic_align-${_commit}"
20
python -m build --wheel --no-isolation
21
}
22
23
check() {
24
python -m venv --system-site-packages --without-pip "$srcdir/test-env"
25
"$srcdir/test-env/bin/python" -m installer "monotonic_align-${_commit}"/dist/*.whl
26
"$srcdir/test-env/bin/python" -I - "$srcdir/monotonic_align-${_commit}/tests/test_max_path.py" <<'PY'
27
import pathlib, runpy, sys, torch
28
import monotonic_align
29
assert pathlib.Path(monotonic_align.__file__).is_relative_to(sys.prefix)
30
torch.manual_seed(0)
31
runpy.run_path(sys.argv[1], run_name='__main__')
32
print('PASS: unchanged upstream examples using the installed wheel')
33
PY
34
"$srcdir/test-env/bin/python" -I "$srcdir/check_alignment.py"
35
}
36
37
package() {
38
cd "monotonic_align-${_commit}"
39
python -m installer --destdir="$pkgdir" dist/*.whl
40
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41
}
42
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-02 02:02:07 | Low | 1 |