diff options
author | Dan Langille <dvl@FreeBSD.org> | 2018-08-02 15:26:02 +0000 |
---|---|---|
committer | Dan Langille <dvl@FreeBSD.org> | 2018-08-02 15:26:02 +0000 |
commit | f20b287af6701b3796516fa7aae5e0cd91992bc0 (patch) | |
tree | a1034ed075d1274907cd1127d2725765dc76cadf | |
parent | Update to 3.6.1 (diff) |
Add devel/py-cbor2
Pure Python CBOR (de)serializer with extensive tag support
Notes
Notes:
svn path=/head/; revision=476240
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-cbor2/Makefile | 23 | ||||
-rw-r--r-- | devel/py-cbor2/distinfo | 3 | ||||
-rw-r--r-- | devel/py-cbor2/pkg-descr | 11 |
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index a6693eaabd7b..efb5c1f1c1bf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4410,6 +4410,7 @@ SUBDIR += py-capstone SUBDIR += py-castellan SUBDIR += py-cbor + SUBDIR += py-cbor2 SUBDIR += py-cclib SUBDIR += py-cdg SUBDIR += py-celery diff --git a/devel/py-cbor2/Makefile b/devel/py-cbor2/Makefile new file mode 100644 index 000000000000..d59545c52f90 --- /dev/null +++ b/devel/py-cbor2/Makefile @@ -0,0 +1,23 @@ +# Created by: Dan Langille <dvl@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= cbor2 +PORTVERSION= 4.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Pure Python CBOR (de)serializer with extensive tag support + +LICENSE= MIT + +USES= python +USE_PYTHON= autoplist concurrent distutils + +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm + +#post-install: +# ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cbor/_cbor.so + +.include <bsd.port.mk> diff --git a/devel/py-cbor2/distinfo b/devel/py-cbor2/distinfo new file mode 100644 index 000000000000..311fbd8d4189 --- /dev/null +++ b/devel/py-cbor2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1533221101 +SHA256 (cbor2-4.1.0.tar.gz) = a48a1a8fa6bc51b271db63c9605de31f957396793c21332972697efd7800372c +SIZE (cbor2-4.1.0.tar.gz) = 23109 diff --git a/devel/py-cbor2/pkg-descr b/devel/py-cbor2/pkg-descr new file mode 100644 index 000000000000..7216c054c228 --- /dev/null +++ b/devel/py-cbor2/pkg-descr @@ -0,0 +1,11 @@ +This library provides encoding and decoding for the Concise Binary Object +Representation (CBOR) (RFC 7049) serialization format. + +There exists another Python CBOR implementation (cbor) which is faster on +CPython due to its C extensions. On PyPy, cbor2 and cbor are almost identical +in performance. The other implementation also lacks documentation and a +comprehensive test suite, does not support most standard extension tags and is +known to crash (segfault) when passed a cyclic structure (say, a list +containing itself). + +WWW: https://pypi.org/project/cbor2/ |