diff --git a/devel/Makefile b/devel/Makefile --- a/devel/Makefile +++ b/devel/Makefile @@ -4670,6 +4670,7 @@ SUBDIR += py-jsonlines SUBDIR += py-jsonnet SUBDIR += py-jsonpatch + SUBDIR += py-jsonpath-ng SUBDIR += py-jsonpath-rw SUBDIR += py-jsonpickle SUBDIR += py-jsonpointer diff --git a/devel/py-jsonpath-ng/Makefile b/devel/py-jsonpath-ng/Makefile new file mode 100644 --- /dev/null +++ b/devel/py-jsonpath-ng/Makefile @@ -0,0 +1,21 @@ +PORTNAME= jsonpath-ng +DISTVERSION= 1.5.3 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= michael.boehm@markt.de +COMMENT= JSONPath implementation based on jsonpath-rw and jsonpath-rw-ext + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-jsonpath-ng/distinfo b/devel/py-jsonpath-ng/distinfo new file mode 100644 --- /dev/null +++ b/devel/py-jsonpath-ng/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629887663 +SHA256 (jsonpath-ng-1.5.3.tar.gz) = a273b182a82c1256daab86a313b937059261b5c5f8c4fa3fc38b882b344dd567 +SIZE (jsonpath-ng-1.5.3.tar.gz) = 32819 diff --git a/devel/py-jsonpath-ng/pkg-descr b/devel/py-jsonpath-ng/pkg-descr new file mode 100644 --- /dev/null +++ b/devel/py-jsonpath-ng/pkg-descr @@ -0,0 +1,9 @@ +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. + +WWW: https://github.com/h2non/jsonpath-ng