diff options
Diffstat (limited to 'textproc/py-json-repair')
-rw-r--r-- | textproc/py-json-repair/Makefile | 32 | ||||
-rw-r--r-- | textproc/py-json-repair/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-json-repair/files/patch-pyproject.toml | 18 | ||||
-rw-r--r-- | textproc/py-json-repair/pkg-descr | 1 |
4 files changed, 54 insertions, 0 deletions
diff --git a/textproc/py-json-repair/Makefile b/textproc/py-json-repair/Makefile new file mode 100644 index 000000000000..8a3e023f6f29 --- /dev/null +++ b/textproc/py-json-repair/Makefile @@ -0,0 +1,32 @@ +PORTNAME= json-repair +DISTVERSIONPREFIX= v +DISTVERSION= 0.50.1 +CATEGORIES= textproc python +#MASTER_SITES= PYPI # missing file for tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Package to repair broken json strings +WWW= https://github.com/mangiucugna/json_repair/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.44.0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= mangiucugna +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 + +.include <bsd.port.mk> diff --git a/textproc/py-json-repair/distinfo b/textproc/py-json-repair/distinfo new file mode 100644 index 000000000000..22210478ad38 --- /dev/null +++ b/textproc/py-json-repair/distinfo @@ -0,0 +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 diff --git a/textproc/py-json-repair/files/patch-pyproject.toml b/textproc/py-json-repair/files/patch-pyproject.toml new file mode 100644 index 000000000000..f6e5bac5c774 --- /dev/null +++ b/textproc/py-json-repair/files/patch-pyproject.toml @@ -0,0 +1,18 @@ +--- pyproject.toml.orig 2025-09-07 22:29:05 UTC ++++ pyproject.toml +@@ -4,8 +4,6 @@ version = "0.50.1" + [project] + name = "json_repair" + version = "0.50.1" +-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/pkg-descr b/textproc/py-json-repair/pkg-descr new file mode 100644 index 000000000000..969888f55d45 --- /dev/null +++ b/textproc/py-json-repair/pkg-descr @@ -0,0 +1 @@ +json-repair is a simple package that can be used to fix an invalid json string. |