Import py-canonicaljson 1.1.4, from maintainer Renaud Allard.

Python module to encode JSON in a standard format.

* Encodes objects and arrays as RFC 7159 JSON.
* Sorts object keys so that you get the same result each time.
* Has no insignificant whitespace to make the output as small as possible.
* Escapes only the characters that must be escaped (U+0000 to U+0019,
  U+0022, U+0056), to keep the output as small as possible.
* Uses the shortest escape sequence for each escaped character.
* Encodes the JSON as UTF-8.
* Can encode "frozendict" immutable dictionaries.

dependency for upcoming synapse/matrix server port.

ok solene@
This commit is contained in:
landry 2020-03-08 16:21:42 +00:00
parent f218a83672
commit 6c3c38ae6e
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/03/08 16:21:42 landry Exp $
COMMENT = canonical JSON
MODPY_EGG_VERSION = 1.1.4
DISTNAME = canonicaljson-${MODPY_EGG_VERSION}
PKGNAME = py-canonicaljson-${MODPY_EGG_VERSION}
CATEGORIES = textproc
HOMEPAGE = https://github.com/matrix-org/python-canonicaljson
MAINTAINER = Renaud Allard <renaud@allard.it>
# Apache-2.0
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_PI = Yes
FLAVORS = python3
FLAVOR = python3
RUN_DEPENDS = devel/py-frozendict${MODPY_FLAVOR} \
devel/py-simplejson${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (canonicaljson-1.1.4.tar.gz) = RbzlMP9f0MqTcD9xv7Zt50ColKO13WEiOYxtjxhTlyU=
SIZE (canonicaljson-1.1.4.tar.gz) = 9355

View File

@ -0,0 +1,10 @@
Python module to encode JSON in a standard format.
* Encodes objects and arrays as RFC 7159 JSON.
* Sorts object keys so that you get the same result each time.
* Has no insignificant whitespace to make the output as small as possible.
* Escapes only the characters that must be escaped (U+0000 to U+0019,
U+0022, U+0056), to keep the output as small as possible.
* Uses the shortest escape sequence for each escaped character.
* Encodes the JSON as UTF-8.
* Can encode "frozendict" immutable dictionaries.

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/03/08 16:21:42 landry Exp $
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}canonicaljson.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/canonicaljson-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
lib/python${MODPY_VERSION}/site-packages/canonicaljson.py