python-ctc-segmentation-git
MEDIUM
maintainer lumaku
1 votes
scanned 2026-10-19 09:25:06.082550
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Lumaku <lumaku@mailbox.org>
2
pkgname=python-ctc-segmentation-git
3
pkgver=1.7.4
4
pkgrel=1
5
pkgdesc='Determine and align utterance segments within audio files using CTC'
6
arch=('any')
7
url='https://github.com/lumaku/ctc-segmentation'
8
license=('Apache License 2.0')
9
depends=('python>=3.7' 'python-numpy' 'cython')
10
optdepends=('sox: listen to audio segments')
11
makedepends=('git' 'cython' 'python-setuptools')
12
provides=('python-ctc-segmentation')
13
conflicts=("python-ctc-segmentation")
14
source=(
15
"${pkgname}::git+${url}")
16
md5sums=(
17
'SKIP')
18
19
20
pkgver() {
21
cd "${pkgname}"
22
printf "%s" "$(python setup.py --version)"
23
}
24
25
26
build() {
27
cd "${pkgname}"
28
cythonize -3 ctc_segmentation/ctc_segmentation_dyn.pyx 2>&1 > /dev/null # discarding the ouptut prevents any stdout leaking to pkgver()
29
python setup.py build 2>&1
30
# echo " --> Warnings of a deprected numpy API can be safely ignored."
31
}
32
33
34
package() {
35
cd "${pkgname}"
36
export PYTHONHASHSEED=0
37
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
38
}
39
40
41
check() {
42
cd "${pkgname}"
43
python -c "import tests.test_ctc_segmentation as test; test.test_ctc_segmentation()"
44
python -c "import tests.test_ctc_segmentation as test; test.test_determine_utterance_segments()"
45
python -c "import tests.test_ctc_segmentation as test; test.test_prepare_text()"
46
}
47
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-19 09:25:06 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |