aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-07-31 16:27:27 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-07-31 16:39:46 +0000
commit0eaa0819aa25f64863701fccb03c18a506e34473 (patch)
treec81b317ad77b574b0f8f3d7ed018cecca4a3ba9a
parentd1d66459c982d366681e67d4c82f2865fbd947ff (diff)
devel/py-jsonschema417: Add py-jsonschema417 4.17.3 (copied from py-jsonschema)
- Add PORTSCOUT
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-jsonschema417/Makefile39
-rw-r--r--devel/py-jsonschema417/distinfo3
-rw-r--r--devel/py-jsonschema417/pkg-descr6
4 files changed, 49 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 9ecdedabba4e..fcafc5ccc40e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4859,6 +4859,7 @@
SUBDIR += py-jsonschema-spec
SUBDIR += py-jsonschema-specifications
SUBDIR += py-jsonschema3
+ SUBDIR += py-jsonschema417
SUBDIR += py-jsonsir
SUBDIR += py-jupyter-client
SUBDIR += py-jupyter-core
diff --git a/devel/py-jsonschema417/Makefile b/devel/py-jsonschema417/Makefile
new file mode 100644
index 000000000000..84df4af790e8
--- /dev/null
+++ b/devel/py-jsonschema417/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= jsonschema
+PORTVERSION= 4.17.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 417
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= JSON Schema validation for Python
+WWW= https://github.com/Julian/jsonschema
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyrsistent>=0.14.0:devel/py-pyrsistent@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>=0:devel/py-pip@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+NO_ARCH= yes
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+
+CONFLICTS_INSTALL= py*-jsonschema3 # bin/jsonschema
+
+PORTSCOUT= limit:^4\.17\.
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.4.0:devel/py-importlib-resources@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pkgutil-resolve-name>=1.3.10:devel/py-pkgutil-resolve-name@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-jsonschema417/distinfo b/devel/py-jsonschema417/distinfo
new file mode 100644
index 000000000000..242dc6efa1b4
--- /dev/null
+++ b/devel/py-jsonschema417/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1678487864
+SHA256 (jsonschema-4.17.3.tar.gz) = 0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d
+SIZE (jsonschema-4.17.3.tar.gz) = 297785
diff --git a/devel/py-jsonschema417/pkg-descr b/devel/py-jsonschema417/pkg-descr
new file mode 100644
index 000000000000..130c5d25f094
--- /dev/null
+++ b/devel/py-jsonschema417/pkg-descr
@@ -0,0 +1,6 @@
+jsonschema is an implementation of JSON Schema for Python
+
+ - Full support for Draft 3 and Draft 4 of the schema.
+ - Lazy validation that can iteratively report all validation errors.
+ - Small and extensible
+ - Programmatic querying of which properties or items failed validation.