python-monotonic-align

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