Thu May 18 12:57:16 2023 UTC ()
py-tlv8: import as devel/py-tlv8 version 0.10.0

Type-Length-Value8 (TLV8) for python

Type-Length-Value (TLV) are used to encode arbitrary data.
In this case the type and length are represented by 1 byte each.
Hence the name TLV8.

A TLV8 entry consists of the following parts:
    * the type: this 8 bit field denotes the type of information
      that is represented by the data.
    * the length: this 8 bit field denotes the length of the data
      (this does not include the 2 bytes for type and length.
      For data longer than 255 bytes, there is a defined procedure available.
    * the value: these length bytes represent the value of this TLV.
      The different types of data is represented differently:
        * bytes: this is raw binary data and will be used as is, no further
          interpretation takes place
        * tlv8: this is a specialized case of bytes values. Using this instead
          of pure bytes enables nesting of data and creating a hierarchy.
        * integer: integers are stored in little-endian byte order and are
          encoded with the minimal number of bytes possible (1, 2, 4 or 8)
        * float: floats are stored as little-endian ieee754 numbers
        * string: strings are always UTF-8 encoded and do not contain the
          terminating NULL byte

TLV8 entries whose content is longer than 255 bytes are split up into fragments.
The type is repeated is repeated in each fragment, only the last fragment may
contain less than 255 bytes. Fragments of one TLV8 entry must be continuous.

Multiple TLV8 entries can be combined to create larger structures.
Entries of different types can placed one after another.
Entries of the same type must be separated by a TLV8 entry of a different
type (and probably zero length).

TLV8 entries of unknown or unwanted type are to be silently ignored.


(nikita)
diff -r1.3993 -r1.3994 pkgsrc/devel/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-tlv8/DESCR
diff -r0 -r1.1 pkgsrc/devel/py-tlv8/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-tlv8/PLIST
diff -r0 -r1.1 pkgsrc/devel/py-tlv8/distinfo

cvs diff -r1.3993 -r1.3994 pkgsrc/devel/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/Makefile 2023/05/18 12:01:02 1.3993
+++ pkgsrc/devel/Makefile 2023/05/18 12:57:15 1.3994
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.3993 2023/05/18 12:01:02 nikita Exp $ 1# $NetBSD: Makefile,v 1.3994 2023/05/18 12:57:15 nikita Exp $
2# 2#
3 3
4COMMENT= Development utilities 4COMMENT= Development utilities
5 5
6SUBDIR+= ETL 6SUBDIR+= ETL
7SUBDIR+= ExmanIDE 7SUBDIR+= ExmanIDE
8SUBDIR+= GConf 8SUBDIR+= GConf
9SUBDIR+= GConf-ui 9SUBDIR+= GConf-ui
10SUBDIR+= Gorm 10SUBDIR+= Gorm
11SUBDIR+= MoarVM 11SUBDIR+= MoarVM
12SUBDIR+= ObjectiveLib 12SUBDIR+= ObjectiveLib
13SUBDIR+= ProjectCenter 13SUBDIR+= ProjectCenter
14SUBDIR+= R-BH 14SUBDIR+= R-BH
@@ -2994,26 +2994,27 @@ SUBDIR+= py-test-utils @@ -2994,26 +2994,27 @@ SUBDIR+= py-test-utils
2994SUBDIR+= py-test-virtualenv 2994SUBDIR+= py-test-virtualenv
2995SUBDIR+= py-test-watch 2995SUBDIR+= py-test-watch
2996SUBDIR+= py-test-xdist 2996SUBDIR+= py-test-xdist
2997SUBDIR+= py-test-xprocess 2997SUBDIR+= py-test-xprocess
2998SUBDIR+= py-test4 2998SUBDIR+= py-test4
2999SUBDIR+= py-testpath 2999SUBDIR+= py-testpath
3000SUBDIR+= py-testrepository 3000SUBDIR+= py-testrepository
3001SUBDIR+= py-testresources 3001SUBDIR+= py-testresources
3002SUBDIR+= py-testscenarios 3002SUBDIR+= py-testscenarios
3003SUBDIR+= py-testtools 3003SUBDIR+= py-testtools
3004SUBDIR+= py-thrift 3004SUBDIR+= py-thrift
3005SUBDIR+= py-timeout-decorator 3005SUBDIR+= py-timeout-decorator
3006SUBDIR+= py-tlsh 3006SUBDIR+= py-tlsh
 3007SUBDIR+= py-tlv8
3007SUBDIR+= py-toolconfig 3008SUBDIR+= py-toolconfig
3008SUBDIR+= py-toolz 3009SUBDIR+= py-toolz
3009SUBDIR+= py-tortoisehg 3010SUBDIR+= py-tortoisehg
3010SUBDIR+= py-tox 3011SUBDIR+= py-tox
3011SUBDIR+= py-traceback2 3012SUBDIR+= py-traceback2
3012SUBDIR+= py-traitlets 3013SUBDIR+= py-traitlets
3013SUBDIR+= py-transitions 3014SUBDIR+= py-transitions
3014SUBDIR+= py-treq 3015SUBDIR+= py-treq
3015SUBDIR+= py-trio 3016SUBDIR+= py-trio
3016SUBDIR+= py-tryton 3017SUBDIR+= py-tryton
3017SUBDIR+= py-trytond 3018SUBDIR+= py-trytond
3018SUBDIR+= py-tubes 3019SUBDIR+= py-tubes
3019SUBDIR+= py-txaio 3020SUBDIR+= py-txaio

File Added: pkgsrc/devel/py-tlv8/DESCR
Type-Length-Value8 (TLV8) for python

Type-Length-Value (TLV) are used to encode arbitrary data.
In this case the type and length are represented by 1 byte each.
Hence the name TLV8.

A TLV8 entry consists of the following parts:
    * the type: this 8 bit field denotes the type of information
      that is represented by the data.
    * the length: this 8 bit field denotes the length of the data
      (this does not include the 2 bytes for type and length.
      For data longer than 255 bytes, there is a defined procedure available.
    * the value: these length bytes represent the value of this TLV.
      The different types of data is represented differently:
        * bytes: this is raw binary data and will be used as is, no further
	  interpretation takes place
        * tlv8: this is a specialized case of bytes values. Using this instead
	  of pure bytes enables nesting of data and creating a hierarchy.
        * integer: integers are stored in little-endian byte order and are
	  encoded with the minimal number of bytes possible (1, 2, 4 or 8)
        * float: floats are stored as little-endian ieee754 numbers
        * string: strings are always UTF-8 encoded and do not contain the
	  terminating NULL byte

TLV8 entries whose content is longer than 255 bytes are split up into fragments.
The type is repeated is repeated in each fragment, only the last fragment may
contain less than 255 bytes. Fragments of one TLV8 entry must be continuous.

Multiple TLV8 entries can be combined to create larger structures.
Entries of different types can placed one after another.
Entries of the same type must be separated by a TLV8 entry of a different
type (and probably zero length).

TLV8 entries of unknown or unwanted type are to be silently ignored.

File Added: pkgsrc/devel/py-tlv8/Makefile
# $NetBSD: Makefile,v 1.1 2023/05/18 12:57:16 nikita Exp $

DISTNAME=	tlv8-0.10.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=t/tlv8/}

MAINTAINER=	nikita@NetBSD.org
HOMEPAGE=	https://pypi.org/project/tlv8/
COMMENT=	Type-Length-Value8 (TLV8) for Python
LICENSE=	apache-2.0

USE_LANGUAGES=	# none

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/devel/py-tlv8/PLIST
@comment $NetBSD: PLIST,v 1.1 2023/05/18 12:57:16 nikita Exp $
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/tlv8/__init__.py
${PYSITELIB}/tlv8/__init__.pyc

File Added: pkgsrc/devel/py-tlv8/distinfo
$NetBSD: distinfo,v 1.1 2023/05/18 12:57:16 nikita Exp $

BLAKE2s (tlv8-0.10.0.tar.gz) = f8f08192aec0759df185c448164cea5de91495dc5c99d28a6aa41f4a4bd3de3e
SHA512 (tlv8-0.10.0.tar.gz) = b16b284a7fa1e17c7b68633c3efc8114eaebfdfee8593683a68881dadd6ba411ab41060ecdcc4ba2235511c2f7862f646690081e75669dee3e855b10c4def745
Size (tlv8-0.10.0.tar.gz) = 16054 bytes