b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # This is free software, licensed under the GNU General Public License v2. |
| 2 | # See /LICENSE for more information. |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=python-jsonpath-ng |
| 8 | PKG_VERSION:=1.5.3 |
| 9 | PKG_RELEASE:=1 |
| 10 | PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> |
| 11 | |
| 12 | PYPI_NAME:=jsonpath-ng |
| 13 | PKG_HASH:=a273b182a82c1256daab86a313b937059261b5c5f8c4fa3fc38b882b344dd567 |
| 14 | |
| 15 | PKG_LICENSE:=Apache-2.0 |
| 16 | PKG_LICENSE_FILES:=LICENSE |
| 17 | |
| 18 | include ../pypi.mk |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | include ../python3-package.mk |
| 21 | |
| 22 | define Package/python3-jsonpath-ng |
| 23 | SECTION:=lang |
| 24 | CATEGORY:=Languages |
| 25 | SUBMENU:=Python |
| 26 | URL:=https://github.com/h2non/jsonpath-ng |
| 27 | TITLE:=Standard compliant implementation of JSONPath |
| 28 | DEPENDS:= \ |
| 29 | +python3-light \ |
| 30 | +python3-logging \ |
| 31 | +python3-ply \ |
| 32 | +python3-six \ |
| 33 | +python3-decorator |
| 34 | endef |
| 35 | |
| 36 | define Package/python3-jsonpath-ng/description |
| 37 | A final implementation of JSONPath for Python that aims to be standard |
| 38 | compliant, including arithmetic and binary comparison operators, as |
| 39 | defined in the original JSONPath proposal. |
| 40 | |
| 41 | This packages merges both jsonpath-rw and jsonpath-rw-ext and provides |
| 42 | several AST API enhancements, such as the ability to update or removes |
| 43 | nodes in the tree. |
| 44 | endef |
| 45 | |
| 46 | $(eval $(call Py3Package,python3-jsonpath-ng)) |
| 47 | $(eval $(call BuildPackage,python3-jsonpath-ng)) |
| 48 | $(eval $(call BuildPackage,python3-jsonpath-ng-src)) |