Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 18:08:09 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fb73735722d8 - main - devel/py-check-jsonschema: Add py-check-jsonschema 0.22.0
Message-ID:  <202304181808.33II89MF078365@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit fb73735722d8cd674f567a97c4e6c55c98b7f174
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-18 17:51:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-18 18:00:40 +0000

    devel/py-check-jsonschema: Add py-check-jsonschema 0.22.0
    
    check-jsonschema is a JSON Schema CLI and pre-commit hook built on jsonschema.
    The schema may be specified as a local or remote (HTTP or HTTPS) file.
    
    Remote files are automatically downloaded and cached if possible.
---
 devel/Makefile                                  |  1 +
 devel/py-check-jsonschema/Makefile              | 29 +++++++++++++++++++++++++
 devel/py-check-jsonschema/distinfo              |  3 +++
 devel/py-check-jsonschema/files/patch-setup.cfg | 11 ++++++++++
 devel/py-check-jsonschema/pkg-descr             |  4 ++++
 5 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 07843d08f3da..a649b0effb2a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4397,6 +4397,7 @@
     SUBDIR += py-cftime
     SUBDIR += py-chainmap
     SUBDIR += py-characteristic
+    SUBDIR += py-check-jsonschema
     SUBDIR += py-check-manifest
     SUBDIR += py-cheetah3
     SUBDIR += py-circuitbreaker
diff --git a/devel/py-check-jsonschema/Makefile b/devel/py-check-jsonschema/Makefile
new file mode 100644
index 000000000000..b5c30e9037d9
--- /dev/null
+++ b/devel/py-check-jsonschema/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	check-jsonschema
+PORTVERSION=	0.22.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	jsonschema CLI and pre-commit hook
+WWW=		https://github.com/python-jsonschema/check-jsonschema
+
+LICENSE=	APACHE20
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8<9:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema>=4.5.1<5.0:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=0<3.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.17.21:devel/py-ruamel.yaml@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.4.0:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-check-jsonschema/distinfo b/devel/py-check-jsonschema/distinfo
new file mode 100644
index 000000000000..a78214892d22
--- /dev/null
+++ b/devel/py-check-jsonschema/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1681052884
+SHA256 (check-jsonschema-0.22.0.tar.gz) = 3485965e13b0c665f86f307915eab52ace5740dcec30e1a82d79f639938a9474
+SIZE (check-jsonschema-0.22.0.tar.gz) = 175163
diff --git a/devel/py-check-jsonschema/files/patch-setup.cfg b/devel/py-check-jsonschema/files/patch-setup.cfg
new file mode 100644
index 000000000000..3fca27056e27
--- /dev/null
+++ b/devel/py-check-jsonschema/files/patch-setup.cfg
@@ -0,0 +1,11 @@
+--- setup.cfg.orig	2023-03-09 16:24:06 UTC
++++ setup.cfg
+@@ -17,7 +17,7 @@ classifiers = 
+ python_requires = >=3.7
+ install_requires = 
+ 	importlib-resources>=1.4.0;python_version<"3.9"
+-	ruamel.yaml==0.17.21
++	ruamel.yaml>=0.17.21
+ 	jsonschema>=4.5.1,<5.0
+ 	requests<3.0
+ 	click>=8,<9
diff --git a/devel/py-check-jsonschema/pkg-descr b/devel/py-check-jsonschema/pkg-descr
new file mode 100644
index 000000000000..0e2e40980832
--- /dev/null
+++ b/devel/py-check-jsonschema/pkg-descr
@@ -0,0 +1,4 @@
+check-jsonschema is a JSON Schema CLI and pre-commit hook built on jsonschema.
+The schema may be specified as a local or remote (HTTP or HTTPS) file.
+
+Remote files are automatically downloaded and cached if possible.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304181808.33II89MF078365>