python-semchunk
LOW
maintainer RubenKelevra
0 votes
scanned 2026-08-23 17:21:15.843281
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: @RubenKelevra <rubenkelevra@gmail.com>
2
3
_pkgname='semchunk'
4
# Upstream published 4.1.1 to PyPI without creating a matching Git tag;
5
# this commit is the exact source state used for the 4.1.1 release.
6
#
7
# See https://github.com/isaacus-dev/semchunk/issues/26
8
#
9
_commit='dccb2f7fc2248e6266d6cbb1c0d986a3f192c3fe'
10
pkgname="python-${_pkgname}"
11
pkgver=4.1.1
12
pkgrel=2
13
pkgdesc='Python library for splitting text into semantically meaningful chunks'
14
arch=('any')
15
url="https://github.com/isaacus-dev/${_pkgname}"
16
license=('MIT')
17
depends=(
18
'python>=3.10'
19
'python-tqdm'
20
)
21
makedepends=(
22
'python-build'
23
'python-hatchling'
24
'python-installer'
25
'python-wheel'
26
)
27
optdepends=(
28
'python-isaacus>=0.19.0: AI-powered chunking'
29
'python-tiktoken: OpenAI tokenizer support'
30
'python-transformers: Hugging Face tokenizer support'
31
)
32
source=(
33
"${_pkgname}-${pkgver}.tar.gz::${url}/archive/${_commit}.tar.gz"
34
'package_test.py'
35
)
36
b2sums=(
37
'90bdbd876595e409256ae009d4fdba4f2abb27d39d01098e19873479ab358ac4c8f0bd886ce891330d925d301f7f27ae88c7929719de11a435599953ba546d1c'
38
'cebd3c18c27ed7c569e3aea5d7bfe9fcf0ee7c41e853875cfa34cb5385d00f897cd5e0198ed6c7e705be12453a2dc5662bc15e4fb6b5e1c24580881db5ef0619'
39
)
40
41
_srcdir="${_pkgname}-${_commit}"
42
43
prepare() {
44
cd -- "${_srcdir}" || return 1
45
grep -Fqx -- "version = \"${pkgver}\"" pyproject.toml
46
}
47
48
build() {
49
cd -- "${_srcdir}" || return 1
50
python -m build --wheel --no-isolation
51
}
52
53
check() {
54
cd -- "${_srcdir}" || return 1
55
PYTHONPATH=src python "${srcdir}/package_test.py"
56
}
57
58
package() {
59
cd -- "${_srcdir}" || return 1
60
python -m installer --destdir="${pkgdir}" --compile-bytecode=2 dist/*.whl
61
install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
62
}
63
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-23 17:21:15 | Low | 1 |