aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-05-01 06:49:38 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-05-01 06:50:21 +0000
commit5fb06467594c4166668e9362cb76154064b40b43 (patch)
tree352080e7bd37bba8bf0ab9835c21353102fedf7b
parent60c3c8a895af84281c570f89ea1e999e64a1461a (diff)
math/py-mnnpy: New port: MNN (Mutual Nearest Neighbors) correct in python
-rw-r--r--math/Makefile1
-rw-r--r--math/py-mnnpy/Makefile28
-rw-r--r--math/py-mnnpy/distinfo3
-rw-r--r--math/py-mnnpy/pkg-descr2
4 files changed, 34 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 459c704d2afa..384530c4ef4b 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -957,6 +957,7 @@
SUBDIR += py-mip
SUBDIR += py-mixsimulator
SUBDIR += py-ml-dtypes
+ SUBDIR += py-mnnpy
SUBDIR += py-moarchiving
SUBDIR += py-mpmath
SUBDIR += py-munkres
diff --git a/math/py-mnnpy/Makefile b/math/py-mnnpy/Makefile
new file mode 100644
index 000000000000..a4cf71d62b95
--- /dev/null
+++ b/math/py-mnnpy/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= mnnpy
+DISTVERSION= 0.1.9.5
+CATEGORIES= math python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= MNN (Mutual Nearest Neighbors) correct in python
+WWW= https://github.com/chriscainx/mnnpy
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anndata>0:devel/py-anndata@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+
+USES= python:3.4+
+USE_PYTHON= distutils cython autoplist
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/mnnpy/_utils.cpython-39.so
+
+.include <bsd.port.mk>
diff --git a/math/py-mnnpy/distinfo b/math/py-mnnpy/distinfo
new file mode 100644
index 000000000000..212002a1f33d
--- /dev/null
+++ b/math/py-mnnpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682876665
+SHA256 (mnnpy-0.1.9.5.tar.gz) = 41cdafaf21392144b683d7acf99f7a1fc59085f9b3697cd6ace57f40dddace9c
+SIZE (mnnpy-0.1.9.5.tar.gz) = 117915
diff --git a/math/py-mnnpy/pkg-descr b/math/py-mnnpy/pkg-descr
new file mode 100644
index 000000000000..a1c50b50fb87
--- /dev/null
+++ b/math/py-mnnpy/pkg-descr
@@ -0,0 +1,2 @@
+mnnpy is an implementation of MNN correct in python featuring low memory usage,
+full multicore support and compatibility with the scanpy framework.