aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2026-05-01 00:49:22 +0000
committerWen Heping <wen@FreeBSD.org>2026-05-01 00:50:29 +0000
commit3e0fa24d33e9f9bb3f7433a3b07e2e888d1b0043 (patch)
treee0f453768cadee77ee55f5fc52bfd833431679ac
parent0ad6157080e2a92ea39feabb220a85aae4f602f1 (diff)
science/py-morphio: New port
MorphIO is a library for reading and writing neuron morphology files. It supports the following formats: SWC ASC (aka. neurolucida) H5 v1 H5 v2 is not supported anymore, see H5v2
-rw-r--r--science/Makefile1
-rw-r--r--science/py-morphio/Makefile25
-rw-r--r--science/py-morphio/distinfo3
-rw-r--r--science/py-morphio/files/patch-pyproject.toml11
-rw-r--r--science/py-morphio/pkg-descr7
5 files changed, 47 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 4a7b8fd49ed1..96c2fdb71ae7 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -375,6 +375,7 @@
SUBDIR += py-mmtf-python
SUBDIR += py-mne
SUBDIR += py-molmod
+ SUBDIR += py-morphio
SUBDIR += py-mp-api
SUBDIR += py-mpcontribs-client
SUBDIR += py-mplhep
diff --git a/science/py-morphio/Makefile b/science/py-morphio/Makefile
new file mode 100644
index 000000000000..02b51fae5e4c
--- /dev/null
+++ b/science/py-morphio/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= morphio
+PORTVERSION= 3.4.2
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Neuron morphology IO library
+WWW= https://github.com/openbraininstitute/MorphIO
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+ cmake:devel/cmake-core \
+ ninja:devel/ninja \
+ pybind11>0:devel/pybind11
+LIB_DEPENDS= libhdf5.so:science/hdf5
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/science/py-morphio/distinfo b/science/py-morphio/distinfo
new file mode 100644
index 000000000000..8b28ec9ac42d
--- /dev/null
+++ b/science/py-morphio/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776477304
+SHA256 (morphio-3.4.2.tar.gz) = 4521b01dd8de8ff98b44341318cee44d75552dfd58b95a0e82ebfffe653b88f8
+SIZE (morphio-3.4.2.tar.gz) = 690093
diff --git a/science/py-morphio/files/patch-pyproject.toml b/science/py-morphio/files/patch-pyproject.toml
new file mode 100644
index 000000000000..adaf2024bca5
--- /dev/null
+++ b/science/py-morphio/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2026-05-01 00:38:10 UTC
++++ pyproject.toml
+@@ -2,8 +2,6 @@ requires = [
+ requires = [
+ "setuptools>=24.2.0",
+ "wheel",
+- "cmake",
+- "ninja",
+ ]
+
+ [tool.pytest.ini_options]
diff --git a/science/py-morphio/pkg-descr b/science/py-morphio/pkg-descr
new file mode 100644
index 000000000000..d768d6633c79
--- /dev/null
+++ b/science/py-morphio/pkg-descr
@@ -0,0 +1,7 @@
+MorphIO is a library for reading and writing neuron morphology files.
+It supports the following formats:
+
+SWC
+ASC (aka. neurolucida)
+H5 v1
+H5 v2 is not supported anymore, see H5v2