python-gammu-git
MEDIUM
maintainer dreieck
0 votes
scanned 2026-09-05 16:00:23.828148
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
Medium
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:48
"${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
3
# Contributor: Carl Smedstad <carsme@archlinux.org>
4
# Contributor: Felix Yan <felixonmars@archlinux>
5
6
7
_gitname="python-gammu"
8
_pkgname="${_gitname}"
9
pkgname="${_pkgname}-git"
10
pkgver=3.4.1+7.r13332.20260905.d3173ee34
11
pkgrel=1
12
pkgdesc="Python bindings for Gammu library. Latest git checkout."
13
arch=(
14
'i686'
15
'x86_64'
16
'aarch64'
17
'armv6h'
18
'armv7h'
19
)
20
_githost='github.com'
21
_gituser='gammu'
22
url="https://${_githost}/${_gituser}/${_gitname}"
23
license=("GPL-2.0-or-later")
24
depends=(
25
'gammu'
26
'glibc'
27
'python>=3'
28
)
29
makedepends=(
30
'git'
31
'python-build'
32
'python-installer'
33
'python-setuptools'
34
'python-wheel'
35
)
36
optdepends=()
37
checkdepends=(
38
'libdbi-drivers'
39
)
40
provides=(
41
"${_pkgname}=${pkgver}"
42
)
43
conflicts=(
44
"${_pkgname}"
45
)
46
47
source=(
48
"${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
49
)
50
sha256sums=(
51
'SKIP'
52
)
53
54
prepare() {
55
cd "${srcdir}/${_pkgname}"
56
git log > "${srcdir}/git.log"
57
}
58
59
pkgver() {
60
cd "${srcdir}/${_pkgname}"
61
62
_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
63
_rev="$(git rev-list --count HEAD)"
64
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
65
_hash="$(git rev-parse --short HEAD)"
66
67
if [ -z "${_ver}" ]; then
68
error "Version could not be determined."
69
return 1
70
else
71
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
72
fi
73
}
74
75
build() {
76
cd "${srcdir}/${_pkgname}"
77
78
python -m build --wheel --no-isolation
79
}
80
81
check() {
82
cd "${srcdir}/${_pkgname}"
83
84
python -m installer --destdir=tmp_install dist/*.whl
85
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
86
# The test suite cannot run in the project root as the uncompiled package
87
# there will take precedence over the compiled package installed in
88
# tmp_install, regardless of what PYTHONPATH is set to. To work around this,
89
# copy the tests to the tmp_install directory and run them from there.
90
cp -r test "$PWD/tmp_install/$site_packages"
91
# Tests can be flaky on slower hardware due to timing.
92
python -m unittest discover -vs "$PWD/tmp_install/$site_packages"
93
}
94
95
package() {
96
cd "${srcdir}/${_pkgname}"
97
98
python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
99
100
_docfiles=(
101
"${srcdir}/git.log"
102
AUTHORS
103
NEWS.rst
104
README.rst
105
)
106
_docdirs=()
107
_manfiles=()
108
_infofiles=()
109
_licensefiles=(
110
COPYING
111
)
112
printf '%s\n' " --> installing documentation ..."
113
for _docfile in "${_docfiles[@]}"; do
114
install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
115
done
116
for _docdir in "${_docdirs[@]}"; do
117
cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
118
done
119
for _manfile in "${_manfiles[@]}"; do
120
_section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
121
install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
122
done
123
for _infofile in "${_infofiles[@]}"; do
124
install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
125
done
126
printf '%s\n' " --> installing license ..."
127
for _licensefile in "${_licensefiles[@]}"; do
128
install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
129
#ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
130
done
131
}
132
133
Changes since previous scan
--- PKGBUILD @ 2026-06-20 00:18+++ PKGBUILD @ 2026-09-05 16:00@@ -7,8 +7,8 @@ _gitname="python-gammu" _pkgname="${_gitname}" pkgname="${_pkgname}-git"-pkgver=3.2.4+105.r13079.20240805.b1d8dc780-pkgrel=2+pkgver=3.4.1+7.r13332.20260905.d3173ee34+pkgrel=1 pkgdesc="Python bindings for Gammu library. Latest git checkout." arch=( 'i686'Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 16:00:23 | Medium | 1 |
| 2026-06-20 00:18:46 | Clean | 2 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |