git: 3cbcc60d7f48 - main - math/py-fairlearn: Add py-fairlearn 0.14.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 11 Jul 2026 12:22:46 UTC
The branch main has been updated by sunpoet:

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

commit 3cbcc60d7f484c5e3e5c40859b4ff6611a0e38fe
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-07-11 11:45:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-07-11 12:20:43 +0000

    math/py-fairlearn: Add py-fairlearn 0.14.0
    
    Fairlearn is a Python package that empowers developers of artificial
    intelligence (AI) systems to assess their system's fairness and mitigate any
    observed unfairness issues. Fairlearn contains mitigation algorithms as well as
    metrics for model assessment. Besides the source code, this repository also
    contains Jupyter notebooks with examples of Fairlearn usage.
---
 math/Makefile               |  1 +
 math/py-fairlearn/Makefile  | 28 ++++++++++++++++++++++++++++
 math/py-fairlearn/distinfo  |  3 +++
 math/py-fairlearn/pkg-descr |  5 +++++
 4 files changed, 37 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 9958a878245a..d51a5e601b8f 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1001,6 +1001,7 @@
     SUBDIR += py-edit-distance
     SUBDIR += py-emcee
     SUBDIR += py-evalidate
+    SUBDIR += py-fairlearn
     SUBDIR += py-faiss
     SUBDIR += py-fastcluster
     SUBDIR += py-fenics-basix
diff --git a/math/py-fairlearn/Makefile b/math/py-fairlearn/Makefile
new file mode 100644
index 000000000000..038ef82dfa5d
--- /dev/null
+++ b/math/py-fairlearn/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	fairlearn
+PORTVERSION=	0.14.0
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python package to assess and improve fairness of machine learning models
+WWW=		https://fairlearn.org/ \
+		https://github.com/fairlearn/fairlearn
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}narwhals>=1.14.0:math/py-narwhals@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.24.4,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>=2.0.3,1:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-learn>=1.5.0:science/py-scikit-learn@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.9.3,1:science/py-scipy@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-fairlearn/distinfo b/math/py-fairlearn/distinfo
new file mode 100644
index 000000000000..c8783235bdd4
--- /dev/null
+++ b/math/py-fairlearn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783563936
+SHA256 (fairlearn-0.14.0.tar.gz) = dc9d12fc6d3f4c94f1bf32eb11032b73363c4a62c986485bcc87febe2e583ebd
+SIZE (fairlearn-0.14.0.tar.gz) = 105832
diff --git a/math/py-fairlearn/pkg-descr b/math/py-fairlearn/pkg-descr
new file mode 100644
index 000000000000..f06d4ad82430
--- /dev/null
+++ b/math/py-fairlearn/pkg-descr
@@ -0,0 +1,5 @@
+Fairlearn is a Python package that empowers developers of artificial
+intelligence (AI) systems to assess their system's fairness and mitigate any
+observed unfairness issues. Fairlearn contains mitigation algorithms as well as
+metrics for model assessment. Besides the source code, this repository also
+contains Jupyter notebooks with examples of Fairlearn usage.