commit:     6100b78e84f338e181f853afb00b24ace4270629
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 23 05:01:54 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 23 06:16:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6100b78e

dev-python/netcdf4: Bump to 1.7.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/netcdf4/Manifest             |  1 +
 dev-python/netcdf4/netcdf4-1.7.2.ebuild | 54 +++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/dev-python/netcdf4/Manifest b/dev-python/netcdf4/Manifest
index cfcb9ed6d7f8..5f61b7656eba 100644
--- a/dev-python/netcdf4/Manifest
+++ b/dev-python/netcdf4/Manifest
@@ -1 +1,2 @@
 DIST netcdf4-1.7.1.tar.gz 827831 BLAKE2B 
a0b6956be7749133f4823f385ea82b84975985814b90e7172ecbfb6d4590cf0809471672375a2331181735d7af622f6302adf2dad5fd95f09e24078bbdc20581
 SHA512 
69b7465f1d7b138b9f2f18732528207c7a573e0a5637c964a881fddc8f01a53b16c7250c22824a6ee0e3383dccd7f93b1971f95a9d1558d6088709efa7558ce7
+DIST netcdf4-1.7.2.tar.gz 835064 BLAKE2B 
f44b08c66dca15bc31b5ed05c881f85a59015472dc82428198766438df7301e4f9802f1bcd99b67c3cf0f29e1879ab1e6b6d3cb77ab90fabcfc74417342a23b0
 SHA512 
a63a5a354157804c422d0b3728e9c4bb2f5d83cbe2fd5be5098bdc497ac2aeed896ab7bcff31e0d50d257f7ab2769e0e6e819cd5191850ed8036298fda7e47da

diff --git a/dev-python/netcdf4/netcdf4-1.7.2.ebuild 
b/dev-python/netcdf4/netcdf4-1.7.2.ebuild
new file mode 100644
index 000000000000..8ce5240cd335
--- /dev/null
+++ b/dev-python/netcdf4/netcdf4-1.7.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=netCDF4
+PYTHON_COMPAT=( python3_{10..13} )
+
+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 ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="blosc bzip2 mpi test szip zstd"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       dev-python/numpy[${PYTHON_USEDEP}]
+       sci-libs/hdf5:=
+       sci-libs/netcdf:=[blosc(-)=,bzip2(-)=,hdf5,mpi=,szip=,zstd(-)=]
+"
+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 "OPeNDAP support" net-misc/curl "sci-libs/netcdf[dap]"
+}

Reply via email to