python-stt

maintainer orphaned · 0 votes · base stt · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The pip install in prepare() is for standard build dependencies (wheel, numpy) and occurs in a controlled build environment; the source is the official Coqui STT repository, and the installed wheel in package_python-stt() is built locally from the same source, posing no remote code execution or supply-chain risk.

Triggered rules

LOW pip install of an external package pip_install_external

`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums. Severity reduced: python-* packages routinely use pip.

  • PKGBUILD:22 pip install -U wheel numpy
LOW AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The pip install in prepare() is for standard build dependencies (wheel, numpy) and occurs in a controlled build environment; the source is the official Coqui STT repository, and the installed wheel in package_python-stt() is built locally from the same source, posing no remote code execution or supply-chain risk.

PKGBUILD

1 offending line(s) highlighted
1pkgbase=stt
2pkgname=('stt' 'python-stt')
3_pkgname=STT
4pkgver=1.3.0
5pkgrel=1
6pkgdesc="Coqui-STT for inference"
7arch=('x86_64' 'aarch64' 'armv7' 'amd64')
8url="https://github.com/coqui-ai/STT"
9license=('MPL2')
10makedepends=('cmake' 'bazel' 'git' 'sox' 'wget' 'swig')
11makedepends_x86_64=('gcc10')
12makedepends_aarch64=('aarch64-aarch64-none-elf-gcc-10.3-bin')
13depends=('python' 'sox')
14source=("${_pkgname}-${pkgver}::git+https://github.com/coqui-ai/STT.git#tag=v${pkgver}")
15sha256sums=('SKIP')
16provides=('stt' 'python-stt')
17conflicts=('python-stt-bin' 'stt-bin')
18
19prepare()
20{
21 python -m ensurepip --upgrade --default-pip
22 pip install -U wheel numpy
23 cd "$srcdir/${_pkgname}-${pkgver}"
24 git submodule sync tensorflow/
25 git submodule update --init tensorflow/
26 cd tensorflow
27 ln -sf ../native_client
28
29}
30
31build() {
32 cd "$srcdir/${_pkgname}-${pkgver}/tensorflow"
33 export PYTHON_BIN_PATH=/usr/bin/python
34 export USE_DEFAULT_PYTHON_LIB_PATH=1
35 export TF_NEED_OPENCL_SYCL=0
36 export TF_ENABLE_XLA=1
37 export TF_NEED_MPI=0
38 export TF_SET_ANDROID_WORKSPACE=0
39 export TF_NEED_ROCM=0
40 export TF_DOWNLOAD_CLANG=0
41 export TF_NEED_CUDA=0
42 if [[ $arch == "x86_64" ]]; then
43 export CC=/usr/bin/gcc-10
44 export CXX=/usr/bin/g++-10
45 elif [[ $arch == "aarch64" ]]; then
46 export CC=/usr/bin/aarch64-none-elf-gcc
47 export CXX=/usr/bin/aarch64-none-elf-g++
48 fi;
49 export CC_OPT_FLAGS="-march=${arch}"
50 #rm .bazelversion
51 ./configure
52
53 if [[ $arch == "x86_64" ]]; then
54 bazel build \
55 --workspace_status_command="bash native_client/bazel_workspace_status_cmd.sh" \
56 -c opt \
57 --copt=-mtune=generic \
58 --copt=-march=x86-64 \
59 --copt=-msse \
60 --copt=-msse2 \
61 --copt=-msse3 \
62 --copt=-msse4.1 \
63 --copt=-msse4.2 \
64 --copt=-mavx \
65 --config=noaws \
66 --config=nogcp \
67 --config=nohdfs \
68 --config=nonccl \
69 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" \
70 //native_client:libstt.so
71 elif [[ $arch == "aarch64" ]]; then
72 bazel build \
73 --workspace_status_command="bash native_client/bazel_workspace_status_cmd.sh" \
74 --config=monolithic \
75 -c opt \
76 --config=elinux_aarch64 \
77 //native_client:libstt.so
78 fi;
79 cd "${srcdir}/${_pkgname}-${pkgver}/native_client"
80 if [[ $arch == "x86_64" ]]; then
81 make stt SOX_LDFLAGS="-lsox -Wl,-no-undefined"
82 elif [[ $arch == "aarch64" ]]; then
83 make TARGET=rpi3-armv8 stt SOX_LDFLAGS="-lsox -Wl,-no-undefined"
84 fi;
85 make bindings -C python
86 #make bindings -C ctcdecode
87}
88
89package_stt() {
90 depends=('sox' 'python-libclang')
91 cd "${srcdir}/${_pkgname}-${pkgver}/native_client"
92 PREFIX="${pkgdir}"/usr make install
93}
94
95package_python-stt() {
96 pkgdesc="Coqui STT Python bindings"
97 depends=('stt' 'python-numpy')
98 cd "${srcdir}/${_pkgname}-${pkgver}/native_client"
99 PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps python/dist/STT-*.whl
100 #PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps ctcdecode/dist/*.whl
101 #mv "$pkgdir/usr/bin/stt" "$pkgdir/usr/bin/stt_python"
102 cp -rv "${srcdir}/${_pkgname}-${pkgver}/training/coqui_stt_training" "$pkgdir"`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
103}
104

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion