Files
packages/lang/python/python-jsonpath-ng/Makefile
T
Alexandru Ardelean 933152c011 python-jsonpath-ng: drop ply, six and decorator dependencies
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>
2026-06-17 06:53:07 +03:00

49 lines
1.3 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-jsonpath-ng
PKG_VERSION:=1.8.0
PKG_RELEASE:=2
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> 
PYPI_NAME:=jsonpath-ng
PYPI_SOURCE_NAME:=jsonpath_ng
PKG_HASH:=54252968134b5e549ea5b872f1df1168bd7defe1a52fed5a358c194e1943ddc3
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=python-setuptools/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-jsonpath-ng
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
URL:=https://github.com/h2non/jsonpath-ng
TITLE:=Standard compliant implementation of JSONPath
DEPENDS:= \
+python3-light \
+python3-logging
endef
define Package/python3-jsonpath-ng/description
A final implementation of JSONPath for Python that aims to be standard
compliant, including arithmetic and binary comparison operators, as
defined in the original JSONPath proposal.
This packages merges both jsonpath-rw and jsonpath-rw-ext and provides
several AST API enhancements, such as the ability to update or removes
nodes in the tree.
endef
$(eval $(call Py3Package,python3-jsonpath-ng))
$(eval $(call BuildPackage,python3-jsonpath-ng))
$(eval $(call BuildPackage,python3-jsonpath-ng-src))