git: dd82f4045e38 - main - science/py-mne: New port: Python project for MEG and EEG data analysis

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 06 Oct 2025 08:29:34 UTC
The branch main has been updated by yuri:

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

commit dd82f4045e38ab4b1967e3d212a0cb2a69887930
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-03 22:57:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-06 08:25:47 +0000

    science/py-mne: New port: Python project for MEG and EEG data analysis
---
 science/Makefile         |  1 +
 science/py-mne/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 science/py-mne/distinfo  |  3 +++
 science/py-mne/pkg-descr |  4 ++++
 4 files changed, 42 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 7a7615c8776f..cf15a52bf49d 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -370,6 +370,7 @@
     SUBDIR += py-meshio
     SUBDIR += py-mmcif
     SUBDIR += py-mmtf-python
+    SUBDIR += py-mne
     SUBDIR += py-molmod
     SUBDIR += py-mp-api
     SUBDIR += py-mpcontribs-client
diff --git a/science/py-mne/Makefile b/science/py-mne/Makefile
new file mode 100644
index 000000000000..3f15411d9c98
--- /dev/null
+++ b/science/py-mne/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	mne
+PORTVERSION=	1.10.1
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python project for MEG and EEG data analysis
+WWW=		https://mne.tools/stable/ \
+		https://github.com/mne-tools/mne-python
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lazy_loader>=0.3:devel/py-lazy_loader@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>=3.7:math/py-matplotlib@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pooch>=1.5:devel/py-pooch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.11:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 concurrent autoplist
+
+NO_ARCH=	yes
+
+# tests as of 1.10.1: pytest tests available but require extra dependencies, skipped for packaging
+
+.include <bsd.port.mk>
diff --git a/science/py-mne/distinfo b/science/py-mne/distinfo
new file mode 100644
index 000000000000..f63a12725683
--- /dev/null
+++ b/science/py-mne/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759525649
+SHA256 (mne-1.10.1.tar.gz) = a93e3d772d551e43ec5ddcd3495fffe0f98e3e384045bcd96497636e86a32a0b
+SIZE (mne-1.10.1.tar.gz) = 7123187
diff --git a/science/py-mne/pkg-descr b/science/py-mne/pkg-descr
new file mode 100644
index 000000000000..06c74b93513a
--- /dev/null
+++ b/science/py-mne/pkg-descr
@@ -0,0 +1,4 @@
+MNE-Python is an open-source Python package for exploring, visualizing,
+and analyzing human neurophysiological data: MEG, EEG, sEEG, ECoG, and more.
+It includes algorithms for preprocessing, source estimation, time-frequency
+analysis, statistics, and machine learning.