python-laya
LOW
maintainer yangtsesu
0 votes
scanned 2026-09-22 01:36:45.870812
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: Yangtse Su <yangtsesu@gmail.com>
2
# Arch naming: the package installs the importable module `laya`, so it is `python-laya`.
3
# There is no console script, so no split `laya` package is needed.
4
pkgname=python-laya
5
_name=${pkgname#python-}
6
pkgver=0.3.5
7
pkgrel=1
8
pkgdesc="Fast, non-autoregressive System 1 decision engine with calibrated probabilities"
9
arch=('any')
10
url="https://github.com/NandhaKishorM/laya"
11
license=('Apache-2.0')
12
depends=(
13
'python'
14
'python-huggingface-hub'
15
'python-numpy'
16
'python-pytorch'
17
'python-safetensors'
18
'python-transformers'
19
)
20
makedepends=(
21
'python-build'
22
'python-installer'
23
'python-setuptools'
24
'python-wheel'
25
)
26
checkdepends=('python-tokenizers')
27
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
28
sha256sums=('b877bb93a5fc950a09f3b6e15360e83aead7c8d08c0b50c3a2fbf67d4c1bacad')
29
b2sums=('e58b19be74d5a9cb50dde1c537f55231a11999a4ecf3f658ab2b7c933e2293694ca40599937d852aa2e66db5ca5b06de3b806b9dce771b4822f8fd7a3d31bfe6')
30
31
build() {
32
cd "$_name-$pkgver"
33
python -m build --wheel --no-isolation
34
}
35
36
check() {
37
cd "$_name-$pkgver"
38
# Same env as the upstream CI: transformers' TensorFlow probe can deadlock model
39
# construction, and the tokenizers Rust runtime must not fork.
40
export USE_TF=0
41
export USE_TORCH=1
42
export TOKENIZERS_PARALLELISM=false
43
# test_local_e2e.py is skipped: it needs real checkpoints under ~/laya_models.
44
# Every other suite builds its own tiny checkpoints and needs no network.
45
python tests/test_router.py
46
python tests/test_criteria.py
47
python tests/test_download.py
48
python tests/test_shortlist.py
49
python tests/test_decision_model.py
50
python tests/test_packaging.py
51
python tests/test_email.py
52
}
53
54
package() {
55
cd "$_name-$pkgver"
56
python -m installer --destdir="$pkgdir" dist/*.whl
57
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
58
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
59
}
60
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-22 01:36:45 | Low | 1 |