Skip to content

Commit

Permalink
devel/py-check-jsonschema: Add py-check-jsonschema 0.22.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sunpoet committed Apr 18, 2023
1 parent 9e18517 commit fb73735
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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
4 changes: 4 additions & 0 deletions 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.

0 comments on commit fb73735

Please sign in to comment.