aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-06-03 06:19:54 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-06-03 08:02:54 +0000
commite9f6e3ae831b7f50b1c99aef178a5acc795afb1d (patch)
tree470b5c1464425609816cbd91caf1f8397b7658fb
parent06684456c9fc910383c7f84ff63cd97afc97369a (diff)
textproc/py-json-repair: update 0.50.1 → 0.59.10
-rw-r--r--textproc/py-json-repair/Makefile5
-rw-r--r--textproc/py-json-repair/distinfo6
-rw-r--r--textproc/py-json-repair/files/patch-pyproject.toml16
-rw-r--r--textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py13
-rw-r--r--textproc/py-json-repair/pkg-descr7
5 files changed, 31 insertions, 16 deletions
diff --git a/textproc/py-json-repair/Makefile b/textproc/py-json-repair/Makefile
index 8a3e023f6f29..1a5b24be390f 100644
--- a/textproc/py-json-repair/Makefile
+++ b/textproc/py-json-repair/Makefile
@@ -1,6 +1,6 @@
PORTNAME= json-repair
DISTVERSIONPREFIX= v
-DISTVERSION= 0.50.1
+DISTVERSION= 0.59.10
CATEGORIES= textproc python
#MASTER_SITES= PYPI # missing file for tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -26,7 +26,6 @@ GH_PROJECT= ${PORTNAME:S/-/_/}
NO_ARCH= yes
-# tests as of 0.50.0: 3 failed, 94 passed, 4 errors in 7.12s, see https://github.com/mangiucugna/json_repair/issues/147
-# tests as of 0.50.1: 8 failed, 24 passed in 18.04s
+# tests as of 0.59.10: 265 passed
.include <bsd.port.mk>
diff --git a/textproc/py-json-repair/distinfo b/textproc/py-json-repair/distinfo
index 22210478ad38..0a2426e5f0e1 100644
--- a/textproc/py-json-repair/distinfo
+++ b/textproc/py-json-repair/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1757284136
-SHA256 (mangiucugna-json_repair-v0.50.1_GH0.tar.gz) = 0b6eb0d5d26c5f817938912684843150efa85c38896fdbc2edfe9c7f11752829
-SIZE (mangiucugna-json_repair-v0.50.1_GH0.tar.gz) = 2513812
+TIMESTAMP = 1780446482
+SHA256 (mangiucugna-json_repair-v0.59.10_GH0.tar.gz) = 008dd8f337bbe8f8d31e5b3e434416de87be541e6ed996fe1f5d8c3dc9cf5cb0
+SIZE (mangiucugna-json_repair-v0.59.10_GH0.tar.gz) = 2550250
diff --git a/textproc/py-json-repair/files/patch-pyproject.toml b/textproc/py-json-repair/files/patch-pyproject.toml
index f6e5bac5c774..a96407e93b96 100644
--- a/textproc/py-json-repair/files/patch-pyproject.toml
+++ b/textproc/py-json-repair/files/patch-pyproject.toml
@@ -1,18 +1,14 @@
---- pyproject.toml.orig 2025-09-07 22:29:05 UTC
+-- Remove license fields from pyproject.toml as they are currently in an invalid format
+-- for newer setuptools, which causes the build to fail.
+
+--- pyproject.toml.orig 2026-06-03 00:32:08 UTC
+++ pyproject.toml
-@@ -4,8 +4,6 @@ version = "0.50.1"
+@@ -4,8 +4,6 @@ version = "0.59.10"
[project]
name = "json_repair"
- version = "0.50.1"
+ version = "0.59.10"
-license = "MIT"
-license-files = ["LICENSE"]
authors = [
{ name="Stefano Baccianella", email="4247706+mangiucugna@users.noreply.github.com" },
]
-@@ -111,4 +109,4 @@ line-ending = "auto"
-
- [tool.ruff.lint.per-file-ignores]
- # Explicit re-exports is fine in __init__.py, still a code smell elsewhere.
--"__init__.py" = ["PLC0414"]
-\ No newline at end of file
-+"__init__.py" = ["PLC0414"]
diff --git a/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py b/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py
new file mode 100644
index 000000000000..bd6ef2e313c0
--- /dev/null
+++ b/textproc/py-json-repair/files/patch-tests_test__docs__app__schema.py
@@ -0,0 +1,13 @@
+-- Skip tests that require flask_cors if it is not installed.
+-- The docs demo app requires flask_cors which is not a mandatory dependency.
+
+--- tests/test_docs_app_schema.py.orig 2026-06-03 00:36:06 UTC
++++ tests/test_docs_app_schema.py
+@@ -1,6 +1,7 @@ pytest.importorskip("flask")
+ import pytest
+
+ pytest.importorskip("flask")
++pytest.importorskip("flask_cors")
+
+ from docs.app import app
+
diff --git a/textproc/py-json-repair/pkg-descr b/textproc/py-json-repair/pkg-descr
index 969888f55d45..bf869ced1751 100644
--- a/textproc/py-json-repair/pkg-descr
+++ b/textproc/py-json-repair/pkg-descr
@@ -1 +1,8 @@
json-repair is a simple package that can be used to fix an invalid json string.
+It can repair malformed JSON from LLMs, APIs, logs, and user input.
+
+Features:
+- Fix missing quotes, commas, brackets, comments, stray prose, and truncated
+ values.
+- Use it as a drop-in fallback for json.loads() or as a schema-guided repair
+ step.