python-json-logic-git

LOW
maintainer Auerhuhn 0 votes scanned 2026-10-08 10:08:28.062655
View on AUR
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
3pkgname=python-json-logic-git
4_gitpkgname=json-logic-py
5pkgver=0.7.0.alpha.r22.5fda912
6pkgrel=1
7pkgdesc='Build complex rules, serialize them as JSON, and execute them in Python'
8arch=('any')
9url='https://github.com/nadirizr/json-logic-py'
10license=('MIT')
11depends=(
12 'python'
13 'python-six'
14)
15makedepends=(
16 'git'
17 'python-build'
18 'python-installer'
19 'python-setuptools'
20 'python-wheel'
21)
22provides=("python-json-logic=${pkgver}")
23conflicts=('python-json-logic')
24
25source=("${_gitpkgname}::git+https://github.com/nadirizr/json-logic-py.git")
26sha512sums=('SKIP')
27
28pkgver() {
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
38build() {
39 cd "${_gitpkgname}"
40 echo >&2 'Building wheel'
41 python -m build --wheel --no-isolation
42}
43
44check() {
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
59package() {
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)SeverityRules
2026-10-08 10:08:28 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion