ip2location-io-python

LOW
maintainer ip2location 0 votes scanned 2026-09-17 00:27:14.276658
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-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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