Skip to content

Commit

Permalink
misc/py-npTDMS: New port: NumPy based module for reading TDMS files p…
Browse files Browse the repository at this point in the history
…roduced by LabView
  • Loading branch information
yurivict committed Jul 21, 2023
1 parent 8a88069 commit 1123e16
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@
SUBDIR += py-mffpy
SUBDIR += py-molequeue
SUBDIR += py-mxnet
SUBDIR += py-npTDMS
SUBDIR += py-numcodecs
SUBDIR += py-onnx
SUBDIR += py-onnx-tf
Expand Down
29 changes: 29 additions & 0 deletions misc/py-npTDMS/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
PORTNAME= npTDMS
DISTVERSION= 1.7.0
CATEGORIES= misc
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= NumPy based module for reading TDMS files produced by LabView
WWW= https://github.com/adamreeve/npTDMS

LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYNUMPY}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} # optional
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}thermocouples_reference>0:misc/py-thermocouples_reference@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}

USES= python
USE_PYTHON= pep517 autoplist pytest

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions misc/py-npTDMS/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1689904513
SHA256 (npTDMS-1.7.0.tar.gz) = 2b1c802add05180db2f07a222cd5c3cd9b508441fb24e04438a76fc4ea7bc39c
SIZE (npTDMS-1.7.0.tar.gz) = 176422
9 changes: 9 additions & 0 deletions misc/py-npTDMS/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
npTDMS is a cross-platform Python package for reading and writing TDMS files
as produced by LabVIEW, and is built on top of the numpy package. Data is read
from TDMS files as numpy arrays, and npTDMS also allows writing numpy arrays
to TDMS files.

TDMS files are structured in a hierarchy of groups and channels. A TDMS file can
contain multiple groups, which may each contain multiple channels. A file, group
and channel may all have properties associated with them, but only channels have
array data.

0 comments on commit 1123e16

Please sign in to comment.