summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-22 07:20:30 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-22 07:54:23 +0200
commit3010a4184b8c2ed1c9ca3891f2ad0cf40c301446 (patch)
tree72ebb8499807fc34eb6eae93cff39142ffaa0455 /dev-python/netcdf4-python
parentdev-python/google-auth: Bump to 1.32.0 (diff)
downloadgentoo-3010a4184b8c2ed1c9ca3891f2ad0cf40c301446.tar.gz
gentoo-3010a4184b8c2ed1c9ca3891f2ad0cf40c301446.tar.bz2
gentoo-3010a4184b8c2ed1c9ca3891f2ad0cf40c301446.zip
dev-python/netcdf4-python: Bump to 1.5.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/netcdf4-python')
-rw-r--r--dev-python/netcdf4-python/Manifest1
-rw-r--r--dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/netcdf4-python/Manifest b/dev-python/netcdf4-python/Manifest
index 0d2318dbcad9..8ce8b514659b 100644
--- a/dev-python/netcdf4-python/Manifest
+++ b/dev-python/netcdf4-python/Manifest
@@ -1 +1,2 @@
DIST netCDF4-1.5.6.tar.gz 763732 BLAKE2B 0bb08ed81206c7d14817dad0f93683b5c44678869c760467071e2a0a76be76c9d78c0f714a043d77dba9b4535a83d59d8197340c105070a4f0204900b1e50410 SHA512 cc5bdb476fa034576f8e1a19e709dba53ad2db68cd10221df2de46a47fc7e5bacfc90fe8c4458ef45b20bf24a1cf52f275b1891af5574e2a139e95cb0d793a8b
+DIST netCDF4-1.5.7.tar.gz 763928 BLAKE2B e8e1c689747aa2697beeadf1c5164f1530fe76e0fb0d7affb94b506d1632c5242a406cdee72a2a683b75beda649f516ca06f5fd8fcddf5c567327d2420443721 SHA512 dfcc900e4d72f7b0c5c6a7fdaaab221735977306e86856e6d712e8a3c36ff22bd6210cbfb9819b9a26fde647c00aed5fcffe430459f9f2d5208a2cf8865ca853
diff --git a/dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild b/dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild
new file mode 100644
index 000000000000..85f4164e0e41
--- /dev/null
+++ b/dev-python/netcdf4-python/netcdf4-python-1.5.7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1 optfeature
+
+MY_PN="netCDF4"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python/numpy interface to the netCDF C library"
+HOMEPAGE="https://unidata.github.io/netcdf4-python/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ sci-libs/hdf5
+ sci-libs/netcdf:=[hdf5]"
+RDEPEND="${DEPEND}
+ dev-python/cftime[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ sci-libs/hdf5
+ sci-libs/netcdf[hdf5,tools]
+ dev-python/cftime[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ local -x NO_NET=1
+ cd test || die
+ "${EPYTHON}" run_all.py || die
+}
+
+pkg_postinst() {
+ optfeature "HDF4 support" sci-libs/hdf "sci-libs/netcdf[hdf]"
+ optfeature "MPI parallel IO support" "sci-libs/hdf5[mpi]" "sci-libs/netcdf[mpi]"
+ optfeature "OPeNDAP support" net-misc/curl "sci-libs/netcdf[dap]"
+}