python-semchunk

LOW
maintainer RubenKelevra 0 votes scanned 2026-08-23 17:21:15.843281
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: @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'
10pkgname="python-${_pkgname}"
11pkgver=4.1.1
12pkgrel=2
13pkgdesc='Python library for splitting text into semantically meaningful chunks'
14arch=('any')
15url="https://github.com/isaacus-dev/${_pkgname}"
16license=('MIT')
17depends=(
18 'python>=3.10'
19 'python-tqdm'
20)
21makedepends=(
22 'python-build'
23 'python-hatchling'
24 'python-installer'
25 'python-wheel'
26)
27optdepends=(
28 'python-isaacus>=0.19.0: AI-powered chunking'
29 'python-tiktoken: OpenAI tokenizer support'
30 'python-transformers: Hugging Face tokenizer support'
31)
32source=(
33 "${_pkgname}-${pkgver}.tar.gz::${url}/archive/${_commit}.tar.gz"
34 'package_test.py'
35)
36b2sums=(
37 '90bdbd876595e409256ae009d4fdba4f2abb27d39d01098e19873479ab358ac4c8f0bd886ce891330d925d301f7f27ae88c7929719de11a435599953ba546d1c'
38 'cebd3c18c27ed7c569e3aea5d7bfe9fcf0ee7c41e853875cfa34cb5385d00f897cd5e0198ed6c7e705be12453a2dc5662bc15e4fb6b5e1c24580881db5ef0619'
39)
40
41_srcdir="${_pkgname}-${_commit}"
42
43prepare() {
44 cd -- "${_srcdir}" || return 1
45 grep -Fqx -- "version = \"${pkgver}\"" pyproject.toml
46}
47
48build() {
49 cd -- "${_srcdir}" || return 1
50 python -m build --wheel --no-isolation
51}
52
53check() {
54 cd -- "${_srcdir}" || return 1
55 PYTHONPATH=src python "${srcdir}/package_test.py"
56}
57
58package() {
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)SeverityRules
2026-08-23 17:21:15 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