aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-07-18 14:29:17 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-07-21 06:38:36 +0000
commit084edc1eca0c76128ac7a78c40854ccef236a569 (patch)
tree6b1b84b3343f12dd3846676814fe74bcab3362c5
parente6f8f224bd66d86dfff77c92160d024e52a5747c (diff)
misc/py-pymatreader: New port: Convenient reader for Matlab mat files
-rw-r--r--misc/Makefile1
-rw-r--r--misc/py-pymatreader/Makefile24
-rw-r--r--misc/py-pymatreader/distinfo3
-rw-r--r--misc/py-pymatreader/pkg-descr3
4 files changed, 31 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 8f42aeced5d1..cf6f98c4454c 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -451,6 +451,7 @@
SUBDIR += py-pyct
SUBDIR += py-pyfiglet
SUBDIR += py-pykml
+ SUBDIR += py-pymatreader
SUBDIR += py-pypatent
SUBDIR += py-pyprind
SUBDIR += py-pyqir
diff --git a/misc/py-pymatreader/Makefile b/misc/py-pymatreader/Makefile
new file mode 100644
index 000000000000..03d32152b84b
--- /dev/null
+++ b/misc/py-pymatreader/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= pymatreader
+DISTVERSION= 0.0.32
+CATEGORIES= misc
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Convenient reader for Matlab mat files
+WWW= https://gitlab.com/obob/pymatreader
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>=1.7.0:science/py-scipy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xmltodict>=0:devel/py-xmltodict@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist pytest # tests fail to run, see https://gitlab.com/obob/pymatreader/-/issues/20
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-pymatreader/distinfo b/misc/py-pymatreader/distinfo
new file mode 100644
index 000000000000..22c0063684dc
--- /dev/null
+++ b/misc/py-pymatreader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1689900077
+SHA256 (pymatreader-0.0.32.tar.gz) = 34a5b4812635c98d3e5776fc21cd7f85b045784539363674d178dfb1158a617f
+SIZE (pymatreader-0.0.32.tar.gz) = 7601
diff --git a/misc/py-pymatreader/pkg-descr b/misc/py-pymatreader/pkg-descr
new file mode 100644
index 000000000000..d8983a9565b9
--- /dev/null
+++ b/misc/py-pymatreader/pkg-descr
@@ -0,0 +1,3 @@
+pymatreader is Python module to read Matlab files. This module works with both
+the old (< 7.3) and the new (>= 7.3) HDF5 based format. The output should be
+the same for both kinds of files.