# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) inherit distutils-r1 MY_PN="netCDF4" MY_P="${MY_PN}-${PV}" DESCRIPTION="Python/numpy interface to the netCDF C library" HOMEPAGE="http://unidata.github.io/netcdf4-python" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" SLOT="0" LICENSE="MIT" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="mpi test" RDEPEND=" >=dev-python/numpy-1.9 sci-libs/hdf5[mpi?] sci-libs/netcdf:=[hdf,hdf5,mpi?] mpi? ( dev-python/mpi4py )" DEPEND="${RDEPEND}" S="${WORKDIR}"/${MY_P} python_test() { cd test || die ${PYTHON} run_all.py || die }