Add py-eccodes-python 0.9.0

Python 3 interface to encode and decode GRIB and BUFR files via the ECMWF
ecCodes library.

Features:
- reads and writes GRIB 1 and 2 files,
- reads and writes BUFR 3 and 4 files,
- supports all modern versions of Python 3.7, 3.6, 3.5 and PyPy3,
- works on most Linux distributions and MacOS, the ecCodes C-library is the only
  system dependency,
- PyPI package with no install time build (binds with CFFI ABI level, in-line
  mode),
- supports writing the index of a GRIB file to disk, to save a full-file scan on
  open.

WWW: https://github.com/ecmwf/eccodes-python
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2019-05-25 22:02:27 +00:00
parent 0408f6a713
commit b4a96957bc
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= eccodes-python
PORTVERSION= 0.9.0
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python interface to the ecCodes BUFR and GRIB de/encoder
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libeccodes.so:science/eccodes
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy@${PY_FLAVOR}
USES= python:3.5+
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>