mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
933152c011
jsonpath-ng 1.8.0 vendors ply as jsonpath_ng._ply and no longer imports six or decorator, so none are required at runtime. It builds through the setuptools.build_meta legacy backend but never declared setuptools as a build dependency; it was only present in the host build env transitively via those packages' builds. Add python-setuptools/host explicitly so the build no longer relies on that side effect. The jsonpath_ng CLI takes a required expression argument and has no version flag, so the generic version check cannot detect the package version from it. Add a test-version.sh override and assert __version__ in test.sh instead, mirroring python-jmespath. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
17 lines
407 B
Bash
17 lines
407 B
Bash
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
# The jsonpath_ng command-line tool takes a required expression argument and
|
|
# has no version flag, so the generic version check cannot detect the version
|
|
# from it. The version is covered by the import check in test.sh instead.
|
|
case "$PKG_NAME" in
|
|
python3-jsonpath-ng | python3-jsonpath-ng-src)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|