git: cfe792f0ddf0 - main - math/py-formulaic-contrasts: Build arbitrary contrasts formulaic models

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Wed, 11 Jun 2025 14:20:38 UTC
The branch main has been updated by jwb:

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

commit cfe792f0ddf0d507fda83550bb3cb20d0d9e520b
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2025-06-11 14:17:47 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2025-06-11 14:17:47 +0000

    math/py-formulaic-contrasts: Build arbitrary contrasts formulaic models
    
    Build arbitrary contrasts for models defined with formulaic.
    https://formulaic-contrasts.readthedocs.io/en/latest/
---
 math/Makefile                         |  1 +
 math/py-formulaic-contrasts/Makefile  | 22 ++++++++++++++++++++++
 math/py-formulaic-contrasts/distinfo  |  3 +++
 math/py-formulaic-contrasts/pkg-descr |  1 +
 4 files changed, 27 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 1fbf625e292c..b2891bf6b0d4 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -981,6 +981,7 @@
     SUBDIR += py-fenics-ufl
     SUBDIR += py-flax
     SUBDIR += py-formulaic
+    SUBDIR += py-formulaic-contrasts
     SUBDIR += py-fpylll
     SUBDIR += py-fraction
     SUBDIR += py-fsph
diff --git a/math/py-formulaic-contrasts/Makefile b/math/py-formulaic-contrasts/Makefile
new file mode 100644
index 000000000000..713849cee4eb
--- /dev/null
+++ b/math/py-formulaic-contrasts/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	formulaic_contrasts
+DISTVERSION=	1.0.0
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jwb@FreeBSD.org
+COMMENT=	Build arbitrary contrasts for models defined with formulaic
+WWW=		https://github.com/scverse/formulaic-contrasts
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}formulaic>0:math/py-formulaic@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/math/py-formulaic-contrasts/distinfo b/math/py-formulaic-contrasts/distinfo
new file mode 100644
index 000000000000..cb0b599dc842
--- /dev/null
+++ b/math/py-formulaic-contrasts/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1749587724
+SHA256 (formulaic_contrasts-1.0.0.tar.gz) = 0a575a810bf1fba28938259d86a3ae2ae90cb9826fca84b9409085170862f701
+SIZE (formulaic_contrasts-1.0.0.tar.gz) = 123794
diff --git a/math/py-formulaic-contrasts/pkg-descr b/math/py-formulaic-contrasts/pkg-descr
new file mode 100644
index 000000000000..c2d48b01d3b0
--- /dev/null
+++ b/math/py-formulaic-contrasts/pkg-descr
@@ -0,0 +1 @@
+Build arbitrary contrasts for models defined with formulaic.