ip2location-io-python

maintainer ip2location · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The pip install occurs inside a test virtual environment for testing purposes, using the locally built wheel from the project's own source, posing no supply-chain risk.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip install occurs inside a test virtual environment for testing purposes, using the locally built wheel from the project's own source, posing no supply-chain risk.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM 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.

  • PKGBUILD:38 test-env/bin/python -m pip install build

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: IP2Location <support@ip2location.io>
2pkgname=ip2location-io-python
3pkgver=1.0.4 # Replace with the actual latest version
4pkgrel=1
5pkgdesc="A Python client library for accessing the IP2Location.io API."
6arch=('any')
7url="https://github.com/ip2location/ip2location-io-python"
8license=('MIT')
9depends=('python' 'python-requests')
10makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
11checkdepends=('python-pytest' 'python-virtualenv')
12source=("$pkgname-$pkgver.tar.gz::https://github.com/ip2location/ip2location-io-python/archive/refs/tags/$pkgver.tar.gz")
13sha256sums=('e26d1b2fd67af00af2f7d536dfee1fed632f2f46843766069b77e006dd03387d')
14
15build() {
16 cd "$srcdir/$pkgname-$pkgver"
17 # Build the wheel
18 python -m build --wheel --no-isolation
19}
20
21package() {
22 cd "$srcdir/$pkgname-$pkgver"
23
24 # Use python -m installer to install into the package directory
25 python -m installer --destdir="$pkgdir" dist/*.whl
26}
27
28check() {
29 cd "$srcdir/$pkgname-$pkgver"
30
31 # Remove any existing virtual environment to avoid conflicts
32 rm -rf test-env
33
34 # Create and activate a new virtual environment
35 python -m venv --system-site-packages test-env
36
37 # Build the wheel if it hasn't been built yet
38 test-env/bin/python -m pip install build
39 test-env/bin/python -m build --wheel
40
41 # Install the generated wheel into the virtual environment
42 test-env/bin/python -m pip install dist/*.whl
43
44 # Run pytest within the virtual environment
45 test-env/bin/python -m pytest
46
47}
48

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