git: 83d7ba7947f3 - main - devel/py-jsonschema3: Add py-jsonschema3 3.2.0 (copied from py-jsonschema)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Nov 2021 13:45:19 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=83d7ba7947f30ddf8620423173545759777f97b6
commit 83d7ba7947f30ddf8620423173545759777f97b6
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 13:23:17 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 13:41:21 +0000
devel/py-jsonschema3: Add py-jsonschema3 3.2.0 (copied from py-jsonschema)
- Fix *_DEPENDS
- Add PORTSCOUT
---
devel/Makefile | 1 +
devel/py-jsonschema3/Makefile | 34 ++++++++++++++++++++++++++++++++++
devel/py-jsonschema3/distinfo | 3 +++
devel/py-jsonschema3/pkg-descr | 8 ++++++++
4 files changed, 46 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index f23e5237e059..3a1acb534d02 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4662,6 +4662,7 @@
SUBDIR += py-jsonref
SUBDIR += py-jsonrpclib-pelix
SUBDIR += py-jsonschema
+ SUBDIR += py-jsonschema3
SUBDIR += py-jsonsir
SUBDIR += py-jupyter-client
SUBDIR += py-jupyter-core
diff --git a/devel/py-jsonschema3/Makefile b/devel/py-jsonschema3/Makefile
new file mode 100644
index 000000000000..8d92df1d7772
--- /dev/null
+++ b/devel/py-jsonschema3/Makefile
@@ -0,0 +1,34 @@
+# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
+
+PORTNAME= jsonschema
+PORTVERSION= 3.2.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 3
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= JSON Schema validation for Python
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${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} \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+PORTSCOUT= limit:^3\.
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-jsonschema3/distinfo b/devel/py-jsonschema3/distinfo
new file mode 100644
index 000000000000..50386c736a63
--- /dev/null
+++ b/devel/py-jsonschema3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1635730877
+SHA256 (jsonschema-3.2.0.tar.gz) = c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a
+SIZE (jsonschema-3.2.0.tar.gz) = 167226
diff --git a/devel/py-jsonschema3/pkg-descr b/devel/py-jsonschema3/pkg-descr
new file mode 100644
index 000000000000..70a4a02d308d
--- /dev/null
+++ b/devel/py-jsonschema3/pkg-descr
@@ -0,0 +1,8 @@
+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.
+
+WWW: https://github.com/Julian/jsonschema