Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2023 20:11:16 GMT
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: edc8695588c9 - main - new port: devel/pyderasn
Message-ID:  <202304052011.335KBGNi057809@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eugen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=edc8695588c9b8e1b6a0ca3aa21607653319b343

commit edc8695588c9b8e1b6a0ca3aa21607653319b343
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2023-04-05 20:00:29 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2023-04-05 20:00:29 +0000

    new port: devel/pyderasn
    
    PyDERASN -- strict and fast ASN.1 DER/CER/BER library for Python
    The port is a requisite for coming pygost port.
---
 devel/Makefile           |  1 +
 devel/pyderasn/Makefile  | 24 ++++++++++++++++++++++++
 devel/pyderasn/distinfo  |  3 +++
 devel/pyderasn/pkg-descr | 29 +++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index bb79b4ce98f8..ca6339f174e0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5758,6 +5758,7 @@
     SUBDIR += pycount
     SUBDIR += pydbus-common
     SUBDIR += pydeps
+    SUBDIR += pyderasn
     SUBDIR += pyenv
     SUBDIR += pygobject3-common
     SUBDIR += pylint
diff --git a/devel/pyderasn/Makefile b/devel/pyderasn/Makefile
new file mode 100644
index 000000000000..7f64dd3cdd46
--- /dev/null
+++ b/devel/pyderasn/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pyderasn
+PORTVERSION=	9.3
+CATEGORIES=	devel python
+MASTER_SITES=	http://www.pyderasn.cypherpunks.ru/download/ \
+		http://www.grosbein.net/freebsd/distfiles/ \
+		LOCAL/eugen
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+EXTRACT_SUFX=	.tar.zst
+
+MAINTAINER=	eugen@FreeBSD.org
+COMMENT=	Strict and fast ASN.1 DER/CER/BER library for Python
+WWW=		http://www.pyderasn.cypherpunks.ru/
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/COPYING.LESSER
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=2.7:devel/py-dateutil@${PY_FLAVOR}
+
+USES=		tar:zst python
+USE_PYTHON=	autoplist concurrent distutils optsuffix
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/pyderasn/distinfo b/devel/pyderasn/distinfo
new file mode 100644
index 000000000000..41dbdabf83f0
--- /dev/null
+++ b/devel/pyderasn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1680289534
+SHA256 (pyderasn-9.3.tar.zst) = 6184a040e56a1445bce0631b789a9544a191da363dd9b3bf14f0faf68b7dbceb
+SIZE (pyderasn-9.3.tar.zst) = 298196
diff --git a/devel/pyderasn/pkg-descr b/devel/pyderasn/pkg-descr
new file mode 100644
index 000000000000..9c1b1484b332
--- /dev/null
+++ b/devel/pyderasn/pkg-descr
@@ -0,0 +1,29 @@
+PyDERASN -- strict and fast ASN.1 DER/CER/BER library for Python
+
+* BER/CER/DER decoding, strict DER validation, DER/CER encoding
+* Basic ASN.1 data types (X.208): BOOLEAN, INTEGER, BIT STRING, OCTET
+  STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime,
+  GeneralizedTime, CHOICE, ANY, SEQUENCE (OF), SET (OF)
+* Size constraints checking
+* Working with sequences as high level data objects with ability to
+  (un)marshall them
+* Aimed to be complaint with X.690-201508
+* Streaming decoding and encoding capabilities, allowing working with
+  very small memory footprint
+* Python 3.5+ compatibility
+* Automatic decoding of DEFINED BY fields
+* Ability to know exact decoded objects offset and lengths in the binary
+* Ability to allow BER-encoded data with knowing if any of specified
+  field has either DER or BER encoding (or possibly indefinite-length
+  encoding)
+* Ability to use mmap-ed files, memoryviews, iterators, 2-pass DER
+  encoding mode and CER encoder dealing with the writer, giving ability
+  to create huge ASN.1 encoded files with very little memory footprint
+* Ability to decode files in event generation mode, without the need to
+  keep all the data and decoded structures in the memory
+* __slots__, copy.copy() friendliness
+* Workability with pickle
+* Cython compatibility
+* Descriptive errors, with decode paths
+* Pretty printer and command-line decoder, that could conveniently
+  replace utilities like either dumpasn1 or openssl asn1parse



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304052011.335KBGNi057809>