aboutsummaryrefslogtreecommitdiff
path: root/science/py-neo
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-neo')
-rw-r--r--science/py-neo/Makefile34
-rw-r--r--science/py-neo/distinfo3
-rw-r--r--science/py-neo/files/patch-pyproject.toml11
-rw-r--r--science/py-neo/pkg-descr8
4 files changed, 56 insertions, 0 deletions
diff --git a/science/py-neo/Makefile b/science/py-neo/Makefile
new file mode 100644
index 000000000000..87932cd97b3c
--- /dev/null
+++ b/science/py-neo/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= neo
+PORTVERSION= 0.14.3
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Package for representing electrophysiology data in Python
+WWW= https://neo.readthedocs.io/en/latest/ \
+ https://github.com/NeuralEnsemble/python-neo
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}quantities>=0.16.1:science/py-quantities@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent pytest
+
+TEST_ENV= ${MAKE_ENV} \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+ DISPLAY=${DISPLAY} \
+ XAUTHORITY=${XAUTHORITY}
+TEST_WRKSRC= ${WRKSRC}/neo/test
+
+NO_ARCH= yes
+
+# tests as of 0.14.2: 669 passed, 731 skipped in 80.29s
+
+.include <bsd.port.mk>
diff --git a/science/py-neo/distinfo b/science/py-neo/distinfo
new file mode 100644
index 000000000000..656ae38760b3
--- /dev/null
+++ b/science/py-neo/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1761805461
+SHA256 (neo-0.14.3.tar.gz) = 50d473fb9070d1728ec6fd72bdad16262b40f7c99df7ff5e8d927ebc2680b080
+SIZE (neo-0.14.3.tar.gz) = 5076523
diff --git a/science/py-neo/files/patch-pyproject.toml b/science/py-neo/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e5bbf1113b30
--- /dev/null
+++ b/science/py-neo/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2025-10-30 06:25:36 UTC
++++ pyproject.toml
+@@ -36,7 +36,7 @@ download = "http://pypi.python.org/pypi/neo"
+
+
+ [build-system]
+-requires = ["setuptools>=78.0.2"]
++requires = ["setuptools"]
+ build-backend = "setuptools.build_meta"
+
+ [project.optional-dependencies]
diff --git a/science/py-neo/pkg-descr b/science/py-neo/pkg-descr
new file mode 100644
index 000000000000..3104e132bd32
--- /dev/null
+++ b/science/py-neo/pkg-descr
@@ -0,0 +1,8 @@
+Neo is a package for representing electrophysiology data in Python, together
+with support for reading a wide range of neurophysiology file formats.
+
+The goal of Neo is to improve interoperability between Python tools for
+analyzing, visualizing and generating electrophysiology data, by providing
+a common, shared object model. In order to be as lightweight a dependency
+as possible, Neo is deliberately limited to representation of data, with
+no functions for data analysis or visualization.