summaryrefslogtreecommitdiff
path: root/dev-python/netcdf4
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/netcdf4')
-rw-r--r--dev-python/netcdf4/Manifest2
-rw-r--r--dev-python/netcdf4/netcdf4-1.6.5.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/netcdf4/Manifest b/dev-python/netcdf4/Manifest
index 0537f5b86481..2468b159294f 100644
--- a/dev-python/netcdf4/Manifest
+++ b/dev-python/netcdf4/Manifest
@@ -1,3 +1,5 @@
DIST netCDF4-1.6.4.tar.gz 778542 BLAKE2B fb90aa5c990a5cb71b82ba0d5bfc39014d552d0804eee24daf7111fc19023b07c3af76e913e227595825748e599eb3c8425f336fa2b520c6a6ae4155e73c2d64 SHA512 a3582fcdd4978d8faa9fd7b49ec40cba0e4d56a32a283f18e1133a1a5ba6e89406625390cbebd0c162d31c65c63060cd8cc4398f0eee3c45be43b54016ec0f48
+DIST netCDF4-1.6.5.tar.gz 764969 BLAKE2B 6337099fbb66a53f2cda7a39e1b0dbb7b3ab9e6ec04177fc0deca1c86003bc20d9ed5d6ba72d5917766c1b9784c39c7cff328a7b5494aeb46bcc1ac895c13e7c SHA512 10f9b62399cf2d155f44b56d6d0f15950f610e855755bcb6d7d1756ded9ed513e83677ab70f7bc75eaffaca1703f37cc0a48c565927df7eb67beeb5a0be6f8d0
EBUILD netcdf4-1.6.4.ebuild 1185 BLAKE2B 99c7850a653d96a8eb1491f99a023900142dae018638f7701cd902fa185e61c841bc45f18de848e5423193a2f1aace93d97d5b0db20c474ecd12b12e0e61be13 SHA512 a0da85950bd8619d27174ae6ed04e3bff90c2ebd492cf35bbe3f37bee14476775f6b8c03538e9a225734251550db3e10b83dc1abc52da97d5e4eb899732c4656
+EBUILD netcdf4-1.6.5.ebuild 1226 BLAKE2B 208083fbaf4e18d798f388e243a5c36d440d3b4b229b69d9b455022b7ac0c9123d168440721502de6ee1aecec97fa0db251014eafe5fd23a0b47d0c91e30351d SHA512 7c4865f1404f215bd5f17271f58a441bf0e1e7d29675b9d2f6f30f105946a3bc6dd70003ff395eedffe8651f5c5450585e6e720f2a2aef8b63733a39df03fcda
MISC metadata.xml 844 BLAKE2B 854fd52f40029d7736e7b01b3f42f3650d903609043e95c15e8f39c50f33ec27deaf8dfc87ec35b084aa743dc63e76b2d8dd92d2214bd162e1057c029ffef2f8 SHA512 9a5e608e406eb38e1ae7c6f25df9ec3bfdf82a7e305c16908ca65b5b4369dcfa15576c731bb0035c47d37e0a04d137e1979e2b1aee1187d3a5974377168e2f6d
diff --git a/dev-python/netcdf4/netcdf4-1.6.5.ebuild b/dev-python/netcdf4/netcdf4-1.6.5.ebuild
new file mode 100644
index 000000000000..a17a67cb13e8
--- /dev/null
+++ b/dev-python/netcdf4/netcdf4-1.6.5.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYPI_PN=netCDF4
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 optfeature pypi
+
+DESCRIPTION="Python/numpy interface to the netCDF C library"
+HOMEPAGE="
+ https://unidata.github.io/netcdf4-python/
+ https://github.com/unidata/netcdf4-python/
+ https://pypi.org/project/netCDF4/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/hdf5:=
+ sci-libs/netcdf:=[hdf5]
+"
+RDEPEND="
+ ${DEPEND}
+ dev-python/certifi[${PYTHON_USEDEP}]
+ dev-python/cftime[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/packaging[${PYTHON_USEDEP}]
+ sci-libs/netcdf[tools(+)]
+ )
+"
+
+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]"
+}