BSD Ports

devel/py-cbor2 6.1.4 NetBSD

CBOR (de)serializer with extensive tag support

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
dd2c40f42b
License
mit
Categories
devel, python
Package size
375.7 KiB, 1288.8 KiB installed

Description

Pure Python CBOR (de)serializer with extensive tag support

In the other systems

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

Install

Binary package:

pkgin install py311-cbor2

From pkgsrc:

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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_646.1.4
NetBSD 10.1 aarch646.1.2
SmartOS / illumos x86_646.1.5
macOS 15 arm646.1.5

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-cbor2-6.1.4, py313-cbor2-6.1.4, py314-cbor2-6.1.4

Commit history 4

DateCommitCreditsLog message
dd2c40f42b adam py-cbor2: updated to 6.1.5
6.1.5 - Fixed :class:`CBORSimpleValue` hashing inconsistently with the integer it compares equal to - Fixed canonical encoding with value sharing enabled emitting shared references to container keys that were never written to the stream, because the throwaway encoding used to sort the keys registered them as shared values; the output then failed to decode, or decoded with the wrong keys substituted in - Fixed shared references (tag 29) to a map or an unhandled tag resolving to the raw :class:`dict` or :class:`CBORTag` instead of the value returned by ``object_hook`` or ``tag_hook``, a regression from 5.x - Fixed the encoder not giving a nested stringref namespace (tag 256) its own index space …
40bc3d5df1 adam py-cbor2: updated to 6.1.4
6.1.4 (2026-08-01) - Fixed :class:`frozendict` deriving its hash from its keys and its values as two independent sets, so that frozendicts holding the same keys and the same values all collided regardless of how the two were paired; since the decoder builds a frozendict for every map in an immutable position, a payload keyed by such maps decoded in quadratic time - Fixed the encoder not registering :class:`bytearray` values in the string reference namespace, unlike :class:`bytes` and :class:`str`; since the decoder registers every byte string it reads, a single ``bytearray`` desynchronised the namespace and made subsequent string references resolve to the wrong value - Fixed the decoder silently accepting an indefinite-length map whose break marker arrives after a …
b650a403fc adam Remove scm info from PLIST - fixed in latest setuptools_scm
0354e794b0 adam py-cbor2: updated to 6.1.3
6.1.3 (2026-07-04) - Fixed the decoder registering 6-byte strings in the string reference namespace at indices 65536–4294967295 where the encoder does not, desynchronising the namespace and resolving later string references to the wrong value - Fixed the IPv4/IPv6 network decoders (tags 52 and 54) silently truncating an address byte string that is longer than the address size instead of rejecting it as malformed - Fixed quadratic decoding time for indefinite-length and large definite-length byte and text strings, caused by concatenating each chunk onto the accumulated result with ``+`` instead of building the result once - Fixed ``datetime_as_timestamp`` encoding whole-second datetimes before 1970 or after 2106 as …