summaryrefslogtreecommitdiff
path: root/devel/py-condense-json
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-condense-json')
-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
4 files changed, 53 insertions, 0 deletions
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.