git: 66935a18932a - main - textproc/py-dirtyjson: New port: JSON decoder for Python that can extract data from the muck

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Jul 2026 05:20:32 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66935a18932a5f3eb9b89852b366e20f8449aa5e

commit 66935a18932a5f3eb9b89852b366e20f8449aa5e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 02:00:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 05:20:15 +0000

    textproc/py-dirtyjson: New port: JSON decoder for Python that can extract data from the muck
---
 textproc/Makefile               |  1 +
 textproc/py-dirtyjson/Makefile  | 21 +++++++++++++++++++++
 textproc/py-dirtyjson/distinfo  |  3 +++
 textproc/py-dirtyjson/pkg-descr |  4 ++++
 4 files changed, 29 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index c3d4412c43f0..cf38c5f294bc 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1384,6 +1384,7 @@
     SUBDIR += py-dialect
     SUBDIR += py-dict2xml
     SUBDIR += py-diff-match-patch
+    SUBDIR += py-dirtyjson
     SUBDIR += py-docrepr
     SUBDIR += py-docstring-to-markdown
     SUBDIR += py-docstring_parser
diff --git a/textproc/py-dirtyjson/Makefile b/textproc/py-dirtyjson/Makefile
new file mode 100644
index 000000000000..c85d1951625e
--- /dev/null
+++ b/textproc/py-dirtyjson/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	dirtyjson
+PORTVERSION=	1.0.8
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	JSON decoder for Python that can extract data from the muck
+WWW=		https://github.com/codecobblers/dirtyjson
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-dirtyjson/distinfo b/textproc/py-dirtyjson/distinfo
new file mode 100644
index 000000000000..5864ac466a16
--- /dev/null
+++ b/textproc/py-dirtyjson/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783064093
+SHA256 (dirtyjson-1.0.8.tar.gz) = 90ca4a18f3ff30ce849d100dcf4a003953c79d3a2348ef056f1d9c22231a25fd
+SIZE (dirtyjson-1.0.8.tar.gz) = 30782
diff --git a/textproc/py-dirtyjson/pkg-descr b/textproc/py-dirtyjson/pkg-descr
new file mode 100644
index 000000000000..76124d8d4157
--- /dev/null
+++ b/textproc/py-dirtyjson/pkg-descr
@@ -0,0 +1,4 @@
+DirtyJSON is a JSON decoder for Python that can extract data from
+malformed or non-standard JSON input. It is designed to be tolerant
+of common JSON formatting errors and can recover usable data from
+inputs that would cause standard JSON parsers to fail.