git: 8f89ff1cae6e - main - devel/py-jstyleson: New port: Library to parse JSON with js-style comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Oct 2025 08:01:48 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8f89ff1cae6e61b0362cce580be1f710cc205b06
commit 8f89ff1cae6e61b0362cce580be1f710cc205b06
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-17 05:49:03 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-17 08:01:38 +0000
devel/py-jstyleson: New port: Library to parse JSON with js-style comments
---
devel/Makefile | 1 +
devel/py-jstyleson/Makefile | 18 ++++++++++++++++++
devel/py-jstyleson/distinfo | 3 +++
devel/py-jstyleson/pkg-descr | 7 +++++++
4 files changed, 29 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 0db0900d8642..ffcc8706a1d5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5159,6 +5159,7 @@
SUBDIR += py-jsonschema-specifications
SUBDIR += py-jsonschema3
SUBDIR += py-jsonsir
+ SUBDIR += py-jstyleson
SUBDIR += py-junitparser
SUBDIR += py-jupyter
SUBDIR += py-jupyter-client
diff --git a/devel/py-jstyleson/Makefile b/devel/py-jstyleson/Makefile
new file mode 100644
index 000000000000..f1aa5ff82ebe
--- /dev/null
+++ b/devel/py-jstyleson/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= jstyleson
+DISTVERSION= 0.0.2
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library to parse JSON with js-style comments
+WWW= https://github.com/linjackson78/jstyleson
+
+LICENSE= MIT
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-jstyleson/distinfo b/devel/py-jstyleson/distinfo
new file mode 100644
index 000000000000..9600fc582c45
--- /dev/null
+++ b/devel/py-jstyleson/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760676101
+SHA256 (jstyleson-0.0.2.tar.gz) = 680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e
+SIZE (jstyleson-0.0.2.tar.gz) = 2004
diff --git a/devel/py-jstyleson/pkg-descr b/devel/py-jstyleson/pkg-descr
new file mode 100644
index 000000000000..62e776de1342
--- /dev/null
+++ b/devel/py-jstyleson/pkg-descr
@@ -0,0 +1,7 @@
+jstyleson is a Python library designed to parse JSON data that includes
+JavaScript-style comments (single-line and multi-line) and trailing commas.
+Standard JSON does not permit these features, and the default Python json
+module cannot handle them. This library preprocesses such JSON strings to
+remove comments and trailing commas, making them compatible with the standard
+json module. It provides wrapper functions around the standard json module
+for convenience.