aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@FreeBSD.org>2025-06-10 21:51:21 +0000
committerDave Cottlehuber <dch@FreeBSD.org>2025-06-10 21:51:21 +0000
commitcbab6614c1e236b17b9193781478ddf1e5204865 (patch)
tree1039c7e6f30f5a361e5931234c043c1d7abed7fc
parent1903c0576e0442f1f7303e89f5f023d40ee5b918 (diff)
devel/py-condense-json: new port - condenses using replacement strings
Sponsored by: SkunkWerks, GmbH
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-condense-json/Makefile23
-rw-r--r--devel/py-condense-json/distinfo3
-rw-r--r--devel/py-condense-json/files/patch-pyproject.toml20
-rw-r--r--devel/py-condense-json/pkg-descr7
5 files changed, 54 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 9369a5320b41..31d3fba259e4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4703,6 +4703,7 @@
SUBDIR += py-comm
SUBDIR += py-commandlines
SUBDIR += py-commentjson
+ SUBDIR += py-condense-json
SUBDIR += py-conditional
SUBDIR += py-confection
SUBDIR += py-configargparse
diff --git a/devel/py-condense-json/Makefile b/devel/py-condense-json/Makefile
new file mode 100644
index 000000000000..42cabbbd15b5
--- /dev/null
+++ b/devel/py-condense-json/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= condense-json
+DISTVERSION= 0.1.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= condense_json-${DISTVERSION}
+
+MAINTAINER= dch@FreeBSD.org
+COMMENT= Python function for condensing JSON using replacement strings
+WWW= https://github.com/simonw/condense-json
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python shebangfix
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-condense-json/distinfo b/devel/py-condense-json/distinfo
new file mode 100644
index 000000000000..7e217ea27435
--- /dev/null
+++ b/devel/py-condense-json/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1749504814
+SHA256 (condense_json-0.1.3.tar.gz) = 25fe8d434fdafd849e8d98f21a3e18f96ae2d6dbc2c17565f29e4843d039d2bc
+SIZE (condense_json-0.1.3.tar.gz) = 8697
diff --git a/devel/py-condense-json/files/patch-pyproject.toml b/devel/py-condense-json/files/patch-pyproject.toml
new file mode 100644
index 000000000000..1c07aa6b37ed
--- /dev/null
+++ b/devel/py-condense-json/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2025-06-10 15:09:59 UTC
++++ pyproject.toml
+@@ -5,14 +5,15 @@ authors = [{name = "Simon Willison"}]
+ readme = "README.md"
+ requires-python = ">=3.9"
+ authors = [{name = "Simon Willison"}]
+-license = "Apache-2.0"
++license = { text = "Apache-2.0" }
++
+ classifiers = [
+ "Typing :: Typed"
+ ]
+ dependencies = []
+
+ [build-system]
+-requires = ["setuptools"]
++requires = ["setuptools>=61"]
+ build-backend = "setuptools.build_meta"
+
+ [project.urls]
diff --git a/devel/py-condense-json/pkg-descr b/devel/py-condense-json/pkg-descr
new file mode 100644
index 000000000000..50abe886a8a5
--- /dev/null
+++ b/devel/py-condense-json/pkg-descr
@@ -0,0 +1,7 @@
+condense-json is a Python library that provides functionality for condensing
+JSON data using replacement strings. It helps reduce the size of JSON output
+by replacing repeated patterns with shorter representations.
+
+This is useful for generating more compact JSON output while maintaining
+the ability to expand it back to its original form when needed, for example
+when interacting with large language models.