BSD Ports

devel/py-cbor2 5.4.3_2 MidnightBSD

Pure Python CBOR (de)serializer with extensive tag support

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
22173208f1
License
mit
Categories
devel, python

Description

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).

In the other systems

SystemPortVersion
MidnightBSDdevel/py-cbor25.4.3_2
FreeBSDdevel/py-cbor26.1.5_1
NetBSDdevel/py-cbor26.1.4
DragonFlydevel/py-cbor25.6.5_1
HardenedBSDdevel/py-cbor26.1.4_1
GhostBSDdevel/py-cbor26.1.4_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}cbor2

From mports:

cd /usr/mports/devel/py-cbor2 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cbor2>0:devel/py-cbor2

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
python cpe
Service scripts
none

Files

distinfo 1
FileSizeSHA256
cbor2-5.4.3.tar.gz8649962b863c5ee6ced4032afe948f3c1484f375550995d3b8498145237fe28e546c2
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
22173208f1 Lucas Holt */*: add CPE identifiers from the matching FreeBSD ports
mport audit matches installed packages against sec.midnightbsd.org by CPE, so a port without one is invisible to it regardless of how vulnerable it is. These 126 ports had no CPE while the corresponding FreeBSD port did, so the vendor and product were copied from there rather than guessed. Sampled against the audit API to confirm the identifiers resolve, e.g. cad/gtkwave tonybybell:gtkwave 82 CVEs archivers/libunrar rarlab:unrar 12 audio/espeak-ng espeak-ng:espeak-ng 5 archivers/minizip-ng zlib-ng:minizip-ng 3 audio/faust grame:faust 3 cad/admesh admesh_project:admesh 3 Three ports were deliberately skipped: archivers/p5-Archive-Tar, …