python-openinference-instrumentation-litellm
LOW
maintainer medaminezghal
1 votes
scanned 2026-09-06 17:12:21.241024
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: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
2
3
_name=openinference-instrumentation-litellm
4
pkgname=python-$_name
5
pkgver=0.1.41
6
pkgrel=1
7
pkgdesc="OpenInference liteLLM Instrumentation."
8
arch=('any')
9
_repo="https://github.com/Arize-ai/openinference"
10
url="$_repo/tree/main/${pkgname/-//instrumentation/}"
11
license=('Apache-2.0')
12
depends=('python' 'python-opentelemetry-api' 'python-opentelemetry-sdk' 'python-opentelemetry-instrumentation' 'python-openinference-instrumentation' 'python-openinference-semantic-conventions' 'python-wrapt' 'python-setuptools')
13
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
14
checkdepends=('python-litellm' 'python-fastapi' 'python-orjson' 'python-opentelemetry-sdk' 'python-opentelemetry-instrumentation-httpx' 'python-pytest-recording' 'python-tenacity')
15
source=("$_repo/archive/refs/tags/$pkgname-v$pkgver.tar.gz"
16
"fix-duplicated-thinking-text.patch")
17
sha256sums=('8357307f9a91fe92c468b6d0da2d7ed69cacf7cc0fbc4fe3359c2a905ec75ea2'
18
'40007b9e2e2557deae751e058df6d0a289aea0721eca29e64f97318beb635474')
19
20
prepare() {
21
cd "$srcdir"/${_name%%-*}-$pkgname-v$pkgver/${pkgname/-//instrumentation/}
22
patch -Np1 -i "$srcdir"/fix-duplicated-thinking-text.patch
23
}
24
25
build() {
26
cd "$srcdir"/${_name%%-*}-$pkgname-v$pkgver/${pkgname/-//instrumentation/}
27
python -m build --wheel --no-isolation
28
}
29
30
check() {
31
local pytest_options=(
32
-vv
33
--disable-warnings
34
)
35
cd "$srcdir"/${_name%%-*}-$pkgname-v$pkgver/${pkgname/-//instrumentation/}
36
python -m venv --system-site-packages test-env
37
test-env/bin/python -m installer dist/*.whl
38
test-env/bin/python -P -m pytest "${pytest_options[@]}" tests
39
}
40
41
package() {
42
cd "$srcdir"/${_name%%-*}-$pkgname-v$pkgver/${pkgname/-//instrumentation/}
43
python -m installer --destdir="$pkgdir" dist/*.whl
44
}
45
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-06 17:12:21 | Low | 1 |