Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc textproc: Add py-demjson
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a8729383be2
branches: trunk
changeset: 430524:5a8729383be2
user: nia <nia%pkgsrc.org@localhost>
date: Fri May 01 17:52:28 2020 +0000
description:
textproc: Add py-demjson
The "demjson" module, and the included "jsonlint" script, provide methods
for encoding and decoding JSON formatted data, as well as checking JSON data
for errors and/or portability issues. The jsonlint command/script can be
used from the command line without needing any programming.
Although the standard Python library now includes basic JSON support (which
it did not when demjson was first written), this module provides a much more
comprehensive implementation with many features not found elsewhere. It is
especially useful for error checking or for parsing JavaScript data which
may not strictly be valid JSON data.
diffstat:
textproc/Makefile | 3 ++-
textproc/py-demjson/ALTERNATIVES | 1 +
textproc/py-demjson/DESCR | 10 ++++++++++
textproc/py-demjson/Makefile | 18 ++++++++++++++++++
textproc/py-demjson/PLIST | 9 +++++++++
textproc/py-demjson/distinfo | 6 ++++++
6 files changed, 46 insertions(+), 1 deletions(-)
diffs (81 lines):
diff -r 704b3ec27222 -r 5a8729383be2 textproc/Makefile
--- a/textproc/Makefile Fri May 01 17:51:14 2020 +0000
+++ b/textproc/Makefile Fri May 01 17:52:28 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1135 2020/04/25 23:49:20 nikita Exp $
+# $NetBSD: Makefile,v 1.1136 2020/05/01 17:52:28 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -833,6 +833,7 @@
SUBDIR+= py-cssutils
SUBDIR+= py-deepdiff
SUBDIR+= py-defusedxml
+SUBDIR+= py-demjson
SUBDIR+= py-dicttoxml
SUBDIR+= py-diff-match-patch
SUBDIR+= py-docutils
diff -r 704b3ec27222 -r 5a8729383be2 textproc/py-demjson/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-demjson/ALTERNATIVES Fri May 01 17:52:28 2020 +0000
@@ -0,0 +1,1 @@
+bin/jsonlint @PREFIX@/bin/jsonlint-@PYVERSSUFFIX@
diff -r 704b3ec27222 -r 5a8729383be2 textproc/py-demjson/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-demjson/DESCR Fri May 01 17:52:28 2020 +0000
@@ -0,0 +1,10 @@
+The "demjson" module, and the included "jsonlint" script, provide methods
+for encoding and decoding JSON formatted data, as well as checking JSON data
+for errors and/or portability issues. The jsonlint command/script can be
+used from the command line without needing any programming.
+
+Although the standard Python library now includes basic JSON support (which
+it did not when demjson was first written), this module provides a much more
+comprehensive implementation with many features not found elsewhere. It is
+especially useful for error checking or for parsing JavaScript data which
+may not strictly be valid JSON data.
diff -r 704b3ec27222 -r 5a8729383be2 textproc/py-demjson/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-demjson/Makefile Fri May 01 17:52:28 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/05/01 17:52:29 nia Exp $
+
+DISTNAME= demjson-2.2.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_PYPI:=d/demjson/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/dmeranda/demjson
+COMMENT= Encoder, decoder, and lint/validator for JSON compliant with RFC 7159
+LICENSE= gnu-lgpl-v3
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/jsonlint \
+ ${DESTDIR}${PREFIX}/bin/jsonlint-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 704b3ec27222 -r 5a8729383be2 textproc/py-demjson/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-demjson/PLIST Fri May 01 17:52:28 2020 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/01 17:52:29 nia Exp $
+bin/jsonlint-${PYVERSSUFFIX}
+${PYSITELIB}/demjson.pyo
+${PYSITELIB}/demjson.pyc
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/demjson.py
diff -r 704b3ec27222 -r 5a8729383be2 textproc/py-demjson/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-demjson/distinfo Fri May 01 17:52:28 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/05/01 17:52:29 nia Exp $
+
+SHA1 (demjson-2.2.4.tar.gz) = 1c5d78b5616b4cc6f4d4ad35fe831bbd11aaadec
+RMD160 (demjson-2.2.4.tar.gz) = 2d5f60a791671465dc91ab370a8ad7480ed81a26
+SHA512 (demjson-2.2.4.tar.gz) = d8a1cde062d0b062bdae29b6d79ad69fb9cc185428718a0009ccbed544ed37bd354fbb86edadb56bd98183ac8636b2edae322ed19aa5f07a7b6df668c7aa0029
+Size (demjson-2.2.4.tar.gz) = 131457 bytes
Home |
Main Index |
Thread Index |
Old Index