summaryrefslogtreecommitdiff
path: root/textproc/py-demjson
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-05-01 17:52:28 +0000
committernia <nia@pkgsrc.org>2020-05-01 17:52:28 +0000
commit224515bb83f6b9442cae10071366df9d73ac5f03 (patch)
treecbffbd476b805d3891386af47d9b7886fced4f5e /textproc/py-demjson
parent171630b0fc3c39f7cd8e4000e3535b6dd6dbbc59 (diff)
downloadpkgsrc-224515bb83f6b9442cae10071366df9d73ac5f03.tar.gz
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 (limited to 'textproc/py-demjson')
-rw-r--r--textproc/py-demjson/ALTERNATIVES1
-rw-r--r--textproc/py-demjson/DESCR10
-rw-r--r--textproc/py-demjson/Makefile18
-rw-r--r--textproc/py-demjson/PLIST9
-rw-r--r--textproc/py-demjson/distinfo6
5 files changed, 44 insertions, 0 deletions
diff --git a/textproc/py-demjson/ALTERNATIVES b/textproc/py-demjson/ALTERNATIVES
new file mode 100644
index 00000000000..f7d2c9b97ae
--- /dev/null
+++ b/textproc/py-demjson/ALTERNATIVES
@@ -0,0 +1 @@
+bin/jsonlint @PREFIX@/bin/jsonlint-@PYVERSSUFFIX@
diff --git a/textproc/py-demjson/DESCR b/textproc/py-demjson/DESCR
new file mode 100644
index 00000000000..3064c100ed6
--- /dev/null
+++ b/textproc/py-demjson/DESCR
@@ -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 --git a/textproc/py-demjson/Makefile b/textproc/py-demjson/Makefile
new file mode 100644
index 00000000000..3ac51b14a4c
--- /dev/null
+++ b/textproc/py-demjson/Makefile
@@ -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
+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 --git a/textproc/py-demjson/PLIST b/textproc/py-demjson/PLIST
new file mode 100644
index 00000000000..0b848f2d9e3
--- /dev/null
+++ b/textproc/py-demjson/PLIST
@@ -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 --git a/textproc/py-demjson/distinfo b/textproc/py-demjson/distinfo
new file mode 100644
index 00000000000..50a5abae134
--- /dev/null
+++ b/textproc/py-demjson/distinfo
@@ -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