git: 9237f9b5b910 - main - devel/py-etuples: New port: Python S-expression emulation using tuple-like objects

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 21 Jun 2023 01:34:38 UTC
The branch main has been updated by yuri:

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

commit 9237f9b5b91067d056482dfe00bf98501be4bc47
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-21 01:34:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-21 01:34:33 +0000

    devel/py-etuples: New port: Python S-expression emulation using tuple-like objects
---
 devel/Makefile             |  1 +
 devel/py-etuples/Makefile  | 27 +++++++++++++++++++++++++++
 devel/py-etuples/distinfo  |  3 +++
 devel/py-etuples/pkg-descr |  6 ++++++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index b3a5d2050fa4..41bf530baf93 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4596,6 +4596,7 @@
     SUBDIR += py-epdb
     SUBDIR += py-epsilon
     SUBDIR += py-etils
+    SUBDIR += py-etuples
     SUBDIR += py-evdev
     SUBDIR += py-eventlib
     SUBDIR += py-ewah-bool-utils
diff --git a/devel/py-etuples/Makefile b/devel/py-etuples/Makefile
new file mode 100644
index 000000000000..40a7ad87f8d0
--- /dev/null
+++ b/devel/py-etuples/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	etuples
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.3.9
+#MASTER_SITES=	PYPI # no tests
+CATEGORIES=	devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python S-expression emulation using tuple-like objects
+WWW=		https://github.com/pythological/etuples
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cons>0:devel/py-cons@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}multipledispatch>0:devel/py-multipledispatch@${PY_FLAVOR}
+
+USES=		python:3.8+
+USE_PYTHON=	distutils autoplist pytest # tests fail: TypeError: Tried to dispatch on non-type, see https://github.com/pythological/etuples/issues/24
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	pythological
+GH_PROJECT=	etuples
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-etuples/distinfo b/devel/py-etuples/distinfo
new file mode 100644
index 000000000000..aee8fe154e57
--- /dev/null
+++ b/devel/py-etuples/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1687310534
+SHA256 (pythological-etuples-v0.3.9_GH0.tar.gz) = 9ccca3515b7bf7d3ad64b9e6cd84e116cb14b4ec05ec9eeda488c1d757a75dc4
+SIZE (pythological-etuples-v0.3.9_GH0.tar.gz) = 45310
diff --git a/devel/py-etuples/pkg-descr b/devel/py-etuples/pkg-descr
new file mode 100644
index 000000000000..bd3baf39bfe9
--- /dev/null
+++ b/devel/py-etuples/pkg-descr
@@ -0,0 +1,6 @@
+Python S-expression emulation using tuple-like objects.
+
+In computer programming, an S-expression (or symbolic expression, abbreviated
+as sexpr or sexp) is an expression in a like-named notation for nested list
+(tree-structured) data. S-expressions were invented for and popularized by the
+programming language Lisp, which uses them for source code as well as data.