diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2014-12-31 13:18:58 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2014-12-31 13:18:58 +0000 |
commit | 73e5775d673cfd1510560938475072490447664b (patch) | |
tree | d06fe110ac3930b633e07b2ed9db4cb81333344f /textproc | |
parent | 490707bf5328e1cc62e6977841be2343fa9187be (diff) | |
download | pkgsrc-73e5775d673cfd1510560938475072490447664b.tar.gz |
Add a package for py-jsonschema. From DESCR:
jsonschema is an implementation of JSON Schema for Python (supporting
2.6+ including Python 3).
Features:
- 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.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 3 | ||||
-rw-r--r-- | textproc/py-jsonschema/DESCR | 9 | ||||
-rw-r--r-- | textproc/py-jsonschema/Makefile | 19 | ||||
-rw-r--r-- | textproc/py-jsonschema/PLIST | 60 | ||||
-rw-r--r-- | textproc/py-jsonschema/distinfo | 5 |
5 files changed, 95 insertions, 1 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 066df00f475..8ebe6408779 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.815 2014/12/30 15:52:17 wiz Exp $ +# $NetBSD: Makefile,v 1.816 2014/12/31 13:18:58 bsiegert Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -661,6 +661,7 @@ SUBDIR+= py-iniparse SUBDIR+= py-jinja2 SUBDIR+= py-jsonlib SUBDIR+= py-jsonlib3 +SUBDIR+= py-jsonschema SUBDIR+= py-libxml2 SUBDIR+= py-libxslt SUBDIR+= py-lxml diff --git a/textproc/py-jsonschema/DESCR b/textproc/py-jsonschema/DESCR new file mode 100644 index 00000000000..fe68d1a1621 --- /dev/null +++ b/textproc/py-jsonschema/DESCR @@ -0,0 +1,9 @@ +jsonschema is an implementation of JSON Schema for Python (supporting +2.6+ including Python 3). + +Features: + +- 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. diff --git a/textproc/py-jsonschema/Makefile b/textproc/py-jsonschema/Makefile new file mode 100644 index 00000000000..d6bed48b064 --- /dev/null +++ b/textproc/py-jsonschema/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2014/12/31 13:18:58 bsiegert Exp $ + +DISTNAME= jsonschema-2.4.0 +CATEGORIES= textproc python +MASTER_SITES= https://pypi.python.org/packages/source/j/jsonschema/ + +MAINTAINER= bsiegert@NetBSD.org +HOMEPAGE= https://github.com/Julian/jsonschema +COMMENT= Implementation of JSON Schema for Python +LICENSE= modified-bsd + +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} + +.include "../../lang/python/egg.mk" + +post-install: + mv ${DESTDIR}${PREFIX}/bin/jsonschema ${DESTDIR}${PREFIX}/bin/jsonschema${PYVERSSUFFIX} + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-jsonschema/PLIST b/textproc/py-jsonschema/PLIST new file mode 100644 index 00000000000..f962b72e5d0 --- /dev/null +++ b/textproc/py-jsonschema/PLIST @@ -0,0 +1,60 @@ +@comment $NetBSD: PLIST,v 1.1 2014/12/31 13:18:58 bsiegert Exp $ +bin/jsonschema${PYVERSSUFFIX} +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/jsonschema/__init__.py +${PYSITELIB}/jsonschema/__init__.pyc +${PYSITELIB}/jsonschema/__init__.pyo +${PYSITELIB}/jsonschema/__main__.py +${PYSITELIB}/jsonschema/__main__.pyc +${PYSITELIB}/jsonschema/__main__.pyo +${PYSITELIB}/jsonschema/_format.py +${PYSITELIB}/jsonschema/_format.pyc +${PYSITELIB}/jsonschema/_format.pyo +${PYSITELIB}/jsonschema/_reflect.py +${PYSITELIB}/jsonschema/_reflect.pyc +${PYSITELIB}/jsonschema/_reflect.pyo +${PYSITELIB}/jsonschema/_utils.py +${PYSITELIB}/jsonschema/_utils.pyc +${PYSITELIB}/jsonschema/_utils.pyo +${PYSITELIB}/jsonschema/_validators.py +${PYSITELIB}/jsonschema/_validators.pyc +${PYSITELIB}/jsonschema/_validators.pyo +${PYSITELIB}/jsonschema/cli.py +${PYSITELIB}/jsonschema/cli.pyc +${PYSITELIB}/jsonschema/cli.pyo +${PYSITELIB}/jsonschema/compat.py +${PYSITELIB}/jsonschema/compat.pyc +${PYSITELIB}/jsonschema/compat.pyo +${PYSITELIB}/jsonschema/exceptions.py +${PYSITELIB}/jsonschema/exceptions.pyc +${PYSITELIB}/jsonschema/exceptions.pyo +${PYSITELIB}/jsonschema/schemas/draft3.json +${PYSITELIB}/jsonschema/schemas/draft4.json +${PYSITELIB}/jsonschema/tests/__init__.py +${PYSITELIB}/jsonschema/tests/__init__.pyc +${PYSITELIB}/jsonschema/tests/__init__.pyo +${PYSITELIB}/jsonschema/tests/compat.py +${PYSITELIB}/jsonschema/tests/compat.pyc +${PYSITELIB}/jsonschema/tests/compat.pyo +${PYSITELIB}/jsonschema/tests/test_cli.py +${PYSITELIB}/jsonschema/tests/test_cli.pyc +${PYSITELIB}/jsonschema/tests/test_cli.pyo +${PYSITELIB}/jsonschema/tests/test_exceptions.py +${PYSITELIB}/jsonschema/tests/test_exceptions.pyc +${PYSITELIB}/jsonschema/tests/test_exceptions.pyo +${PYSITELIB}/jsonschema/tests/test_format.py +${PYSITELIB}/jsonschema/tests/test_format.pyc +${PYSITELIB}/jsonschema/tests/test_format.pyo +${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.py +${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.pyc +${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.pyo +${PYSITELIB}/jsonschema/tests/test_validators.py +${PYSITELIB}/jsonschema/tests/test_validators.pyc +${PYSITELIB}/jsonschema/tests/test_validators.pyo +${PYSITELIB}/jsonschema/validators.py +${PYSITELIB}/jsonschema/validators.pyc +${PYSITELIB}/jsonschema/validators.pyo diff --git a/textproc/py-jsonschema/distinfo b/textproc/py-jsonschema/distinfo new file mode 100644 index 00000000000..1cf52e1ef8b --- /dev/null +++ b/textproc/py-jsonschema/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/12/31 13:18:58 bsiegert Exp $ + +SHA1 (jsonschema-2.4.0.tar.gz) = 35d4d90ce942a4b030eda75e9a2b32f97e121a98 +RMD160 (jsonschema-2.4.0.tar.gz) = 2c48450248267e754dab237f48af949a15762205 +Size (jsonschema-2.4.0.tar.gz) = 48293 bytes |