python-json-logic-git
LOW
maintainer Auerhuhn
0 votes
scanned 2026-10-08 10:08:28.062655
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: Claudia Pellegrino <auerhuhn@archlinux.org>
2
3
pkgname=python-json-logic-git
4
_gitpkgname=json-logic-py
5
pkgver=0.7.0.alpha.r22.5fda912
6
pkgrel=1
7
pkgdesc='Build complex rules, serialize them as JSON, and execute them in Python'
8
arch=('any')
9
url='https://github.com/nadirizr/json-logic-py'
10
license=('MIT')
11
depends=(
12
'python'
13
'python-six'
14
)
15
makedepends=(
16
'git'
17
'python-build'
18
'python-installer'
19
'python-setuptools'
20
'python-wheel'
21
)
22
provides=("python-json-logic=${pkgver}")
23
conflicts=('python-json-logic')
24
25
source=("${_gitpkgname}::git+https://github.com/nadirizr/json-logic-py.git")
26
sha512sums=('SKIP')
27
28
pkgver() {
29
printf "%s.r%s.%s" \
30
"$(
31
awk -F \' '/version=/ { print $2 }' "${_gitpkgname}/setup.py" \
32
| tr - .
33
)" \
34
"$(git -C "${_gitpkgname}" rev-list --count HEAD)" \
35
"$(git -C "${_gitpkgname}" rev-parse --short HEAD)"
36
}
37
38
build() {
39
cd "${_gitpkgname}"
40
echo >&2 'Building wheel'
41
python -m build --wheel --no-isolation
42
}
43
44
check() {
45
cd "${_gitpkgname}"
46
47
echo >&2 'Testing the library'
48
python \
49
-c 'from json_logic import jsonLogic; print(jsonLogic({ "==": [1, 1] }))' \
50
> actual.txt
51
if ! grep -qF "True" actual.txt; then
52
printf >&2 '%s\n' 'Unexpected test output:' '==='
53
cat >&2 actual.txt
54
printf >&2 '\n%s\n' '==='
55
exit 1
56
fi
57
}
58
59
package() {
60
cd "${_gitpkgname}"
61
62
echo >&2 'Packaging the wheel'
63
python -I -m installer --destdir="${pkgdir}" dist/*.whl
64
65
echo >&2 'Packaging the documentation'
66
install -D -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
67
README.md README.rst
68
69
echo >&2 'Packaging the license'
70
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
71
LICENSE
72
}
73
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-08 10:08:28 | Low | 1 |