Skip to content

Commit

Permalink
Add devel/py-construct-classes 0.1.2
Browse files Browse the repository at this point in the history
Parse your binary data into dataclasses. Pack your dataclasses into binary
data.

construct-classes rely on construct for parsing and packing. The programmer
needs to manually write the Construct expressions. There is also no type
verification, so it is the programmer's responsibility that the dataclass and
the Construct expression match.
  • Loading branch information
Midar committed Sep 14, 2024
1 parent 30af0d4 commit 61316f4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devel/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4340 2024/09/14 23:48:23 js Exp $
# $NetBSD: Makefile,v 1.4341 2024/09/14 23:56:47 js Exp $
#

COMMENT= Development utilities
Expand Down Expand Up @@ -2523,6 +2523,7 @@ SUBDIR+= py-confuse
SUBDIR+= py-constantly
SUBDIR+= py-constants
SUBDIR+= py-construct
SUBDIR+= py-construct-classes
SUBDIR+= py-contextlib2
SUBDIR+= py-cookiecutter
SUBDIR+= py-cooldict
Expand Down
7 changes: 7 additions & 0 deletions devel/py-construct-classes/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Parse your binary data into dataclasses. Pack your dataclasses into binary
data.

construct-classes rely on construct for parsing and packing. The programmer
needs to manually write the Construct expressions. There is also no type
verification, so it is the programmer's responsibility that the dataclass and
the Construct expression match.
18 changes: 18 additions & 0 deletions devel/py-construct-classes/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2024/09/14 23:56:47 js Exp $

DISTNAME= construct-classes-0.1.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/construct-classes/}

MAINTAINER= [email protected]
HOMEPAGE= https://pypi.org/project/construct-classes/
COMMENT= Parse your binary structs into dataclasses
LICENSE= mit

TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core-[0-9]*:../../devel/py-poetry-core

USE_LANGUAGES= # none

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
12 changes: 12 additions & 0 deletions devel/py-construct-classes/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.1 2024/09/14 23:56:47 js Exp $
${PYSITELIB}/CHANGELOG.rst
${PYSITELIB}/LICENSE
${PYSITELIB}/README.rst
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/construct_classes/__init__.py
${PYSITELIB}/construct_classes/__init__.pyc
${PYSITELIB}/construct_classes/__init__.pyo
${PYSITELIB}/construct_classes/py.typed
5 changes: 5 additions & 0 deletions devel/py-construct-classes/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2024/09/14 23:56:47 js Exp $

BLAKE2s (construct-classes-0.1.2.tar.gz) = 5ccf749a6e543227c75fcfae982baf608137b9c084cd413bf8bcb2a959eb04a7
SHA512 (construct-classes-0.1.2.tar.gz) = 325fc1114d672a679323f90893298078f6f9793806da072bacc264856cc97e53b78d94e51b5767fde059eec6a2f520ee0c21d9b508897de716a17a01ea37248f
Size (construct-classes-0.1.2.tar.gz) = 5018 bytes

0 comments on commit 61316f4

Please sign in to comment.