Package Details: python-groq 1.0.0-1

Git Clone URL: https://aur.archlinux.org/python-groq.git (read-only, click to copy)
Package Base: python-groq
Description: The official Python library for the groq API.
Upstream URL: https://github.com/groq/groq-python
Licenses: Apache-2.0
Submitter: medaminezghal
Maintainer: medaminezghal
Last Packager: medaminezghal
Votes: 1
Popularity: 0.000107
First Submitted: 2025-02-19 07:23 (UTC)
Last Updated: 2026-03-04 09:52 (UTC)

Latest Comments

marmis commented on 2026-03-07 00:49 (UTC) (edited on 2026-03-07 00:57 (UTC) by marmis)

Hi, @medaminezghal. I can't build this package on a clean-chroot because pkill is missing. The package procps-ng, which has pkill, is not included in base nor base-devel, so it should be listed in makedepends.

==> Finished making: python-groq 1.0.0-1 (Sat Mar  7 00:02:21 2026)
/usr/bin/makepkg: line 1: pkill: command not found

==> ERROR: An unknown error has occurred. Exiting...
/chrootbuild: line 3:    14 User defined signal 1      sudo --preserve-env=SOURCE_DATE_EPOCH --preserve-env=BUILDTOOL --preserve-env=BUILDTOOLVER -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/marmis/build
error: failed to build 'python-groq-1.0.0-1': failed to run: makechrootpkg -r /var/lib/aurbuild/x86_64 -- -feA --noconfirm --noprepare --holdver: 
error: packages failed to build: python-groq-1.0.0-1

(Edit: Never mind about this. It is necessary in plain makepkg, just not in a clean chroot) Another issue here is the use of trap, which keeps the server running after the check() function ends. I think this could simply be called after the tests are done:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ arch=('any')
 url='https://github.com/groq/groq-python'
 license=('Apache-2.0')
 depends=('python' 'python-httpx' 'python-pydantic' 'python-typing_extensions' 'python-anyio' 'python-distro' 'python-sniffio')
-makedepends=('python-hatchling' 'python-hatch-fancy-pypi-readme' 'python-build' 'python-installer' 'python-wheel')
+makedepends=('python-hatchling' 'python-hatch-fancy-pypi-readme' 'python-build' 'python-installer' 'python-wheel' 'procps-ng')
 checkdepends=('python-respx' 'python-pytest' 'python-pytest-asyncio' 'python-time-machine' 'python-dirty-equals' 'python-rich' 'python-pytest-xdist' 'python-aiohttp' 'python-httpx-aiohttp' 'npm' 'nodejs')
 optdepends=('python-aiohttp: aiohttp' 'python-httpx-aiohttp: aiohttp')
 source=("$url/archive/refs/tags/v$pkgver.tar.gz")
@@ -28,9 +28,9 @@ check() {
     -p 'no:benchmark'
   )
   cd "$srcdir"/$_name-python-$pkgver
-  trap 'pkill "npm exec prism"' EXIT
   ./scripts/mock --daemon
   PYTHONPATH=$PWD/src pytest "${pytest_options[@]}" tests
+  pkill 'npm exec prism'
 }

 package() {

You could even use kill directly, if you patch scripts/mock to save the PID in a file.