Skip to content

Commit

Permalink
misc/py-pymatreader: New port: Convenient reader for Matlab mat files
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Jul 21, 2023
1 parent e6f8f22 commit 084edc1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions misc/Makefile
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions 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.

0 comments on commit 084edc1

Please sign in to comment.