git: 516de6f948d8 - main - devel/py-jsonpath-ng: New port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Sat, 27 Nov 2021 16:23:01 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=516de6f948d8d2998c53fe0bbe13f83b469daf13

commit 516de6f948d8d2998c53fe0bbe13f83b469daf13
Author:     Michael Boehm <michael.boehm@markt.de>
AuthorDate: 2021-11-26 17:58:03 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2021-11-27 16:18:01 +0000

    devel/py-jsonpath-ng: New port
    
    JSONPath implementation based on jsonpath-rw and jsonpath-rw-ext.
    
    PR:                     258149
    Approved by:            0mp (mentor)
    Differential Revision:  https://reviews.freebsd.org/D33135
---
 devel/Makefile                 |  1 +
 devel/py-jsonpath-ng/Makefile  | 21 +++++++++++++++++++++
 devel/py-jsonpath-ng/distinfo  |  3 +++
 devel/py-jsonpath-ng/pkg-descr |  9 +++++++++
 4 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0000203df2e5..bc72f3e711b4 100644
--- 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
index 000000000000..b5bbc3ed106b
--- /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 <bsd.port.mk>
diff --git a/devel/py-jsonpath-ng/distinfo b/devel/py-jsonpath-ng/distinfo
new file mode 100644
index 000000000000..6d011ff7e2df
--- /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
index 000000000000..f3bb1600f095
--- /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