python-laya

LOW
maintainer yangtsesu 0 votes scanned 2026-09-22 01:36:45.870812
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: 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.
4pkgname=python-laya
5_name=${pkgname#python-}
6pkgver=0.3.5
7pkgrel=1
8pkgdesc="Fast, non-autoregressive System 1 decision engine with calibrated probabilities"
9arch=('any')
10url="https://github.com/NandhaKishorM/laya"
11license=('Apache-2.0')
12depends=(
13 'python'
14 'python-huggingface-hub'
15 'python-numpy'
16 'python-pytorch'
17 'python-safetensors'
18 'python-transformers'
19)
20makedepends=(
21 'python-build'
22 'python-installer'
23 'python-setuptools'
24 'python-wheel'
25)
26checkdepends=('python-tokenizers')
27source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
28sha256sums=('b877bb93a5fc950a09f3b6e15360e83aead7c8d08c0b50c3a2fbf67d4c1bacad')
29b2sums=('e58b19be74d5a9cb50dde1c537f55231a11999a4ecf3f658ab2b7c933e2293694ca40599937d852aa2e66db5ca5b06de3b806b9dce771b4822f8fd7a3d31bfe6')
30
31build() {
32 cd "$_name-$pkgver"
33 python -m build --wheel --no-isolation
34}
35
36check() {
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
54package() {
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)SeverityRules
2026-09-22 01:36:45 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