git: 2f8a34d30d6b - main - devel/py-expression: Add port: Practical functional programming for Python 3.10+

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 17 Jul 2026 02:55:19 UTC
The branch main has been updated by tagattie:

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

commit 2f8a34d30d6bc2dbb0bcef6bca3900f7dab02dfc
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-07-17 02:54:15 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-07-17 02:54:15 +0000

    devel/py-expression: Add port: Practical functional programming for Python 3.10+
    
    Expression aims to be a solid, type-safe, pragmatic, and high
    performance library for frictionless and practical functional
    programming in Python 3.10+.
    
    WWW: https://github.com/dbrattli/Expression
---
 devel/Makefile                |  1 +
 devel/py-expression/Makefile  | 23 +++++++++++++++++++++++
 devel/py-expression/distinfo  |  3 +++
 devel/py-expression/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 58501953fcc7..b96510eb1d32 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5017,6 +5017,7 @@
     SUBDIR += py-expandvars
     SUBDIR += py-expecttest
     SUBDIR += py-expiringdict
+    SUBDIR += py-expression
     SUBDIR += py-extras
     SUBDIR += py-extremes
     SUBDIR += py-fabric
diff --git a/devel/py-expression/Makefile b/devel/py-expression/Makefile
new file mode 100644
index 000000000000..5a67737b7f95
--- /dev/null
+++ b/devel/py-expression/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	expression
+DISTVERSION=	5.6.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	Practical functional programming for Python 3.10+
+WWW=		https://github.com/dbrattli/Expression
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6.0:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.6.2<3:devel/py-pydantic2@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-expression/distinfo b/devel/py-expression/distinfo
new file mode 100644
index 000000000000..c166fb76ad79
--- /dev/null
+++ b/devel/py-expression/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1784254897
+SHA256 (expression-5.6.0.tar.gz) = 454f6fe138347194a43c7f878d958efe9b84b9cc770e462010c7a52e18058065
+SIZE (expression-5.6.0.tar.gz) = 59147
diff --git a/devel/py-expression/pkg-descr b/devel/py-expression/pkg-descr
new file mode 100644
index 000000000000..702c061e72aa
--- /dev/null
+++ b/devel/py-expression/pkg-descr
@@ -0,0 +1,3 @@
+Expression aims to be a solid, type-safe, pragmatic, and high
+performance library for frictionless and practical functional
+programming in Python 3.10+.