Add py-cbor 1.0.0

An implementation of RFC 7049 - Concise Binary Object Representation (CBOR).

CBOR is comparable to JSON, has a superset of JSON's ability, but serializes to
a binary format which is smaller and faster to generate and parse.

The two primary functions are cbor.loads() and cbor.dumps().

This library includes a C implementation which runs 3-5 times faster than the
Python standard library's C-accelerated implementanion of JSON. This is also
includes a 100% Python implementation.

WWW: https://pypi.org/project/cbor/
WWW: https://bitbucket.org/bodhisnarkva/cbor
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-05-08 19:35:03 +00:00
parent 6841edc5cf
commit e37c1f30a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469391
4 changed files with 38 additions and 0 deletions

View file

@ -4357,6 +4357,7 @@
SUBDIR += py-canonicaljson
SUBDIR += py-capstone
SUBDIR += py-castellan
SUBDIR += py-cbor
SUBDIR += py-cclib
SUBDIR += py-cdg
SUBDIR += py-celery

21
devel/py-cbor/Makefile Normal file
View file

@ -0,0 +1,21 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= cbor
PORTVERSION= 1.0.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= RFC 7049 - Concise Binary Object Representation
LICENSE= APACHE20
USE_PYTHON= autoplist concurrent distutils
USES= python
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cbor/_cbor.so
.include <bsd.port.mk>

3
devel/py-cbor/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1523535472
SHA256 (cbor-1.0.0.tar.gz) = 13225a262ddf5615cbd9fd55a76a0d53069d18b07d2e9f19c39e6acb8609bbb6
SIZE (cbor-1.0.0.tar.gz) = 20096

13
devel/py-cbor/pkg-descr Normal file
View file

@ -0,0 +1,13 @@
An implementation of RFC 7049 - Concise Binary Object Representation (CBOR).
CBOR is comparable to JSON, has a superset of JSON's ability, but serializes to
a binary format which is smaller and faster to generate and parse.
The two primary functions are cbor.loads() and cbor.dumps().
This library includes a C implementation which runs 3-5 times faster than the
Python standard library's C-accelerated implementanion of JSON. This is also
includes a 100% Python implementation.
WWW: https://pypi.org/project/cbor/
WWW: https://bitbucket.org/bodhisnarkva/cbor