commit:     abcd7f60985a1e8129816c3873091e4a543c452b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 20 04:50:55 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 20 04:58:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abcd7f60

dev-python/h5py: Bump to 3.13.0

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

 dev-python/h5py/Manifest           |  1 +
 dev-python/h5py/h5py-3.13.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-python/h5py/Manifest b/dev-python/h5py/Manifest
index 8e3e2b3fd531..3c76923b4025 100644
--- a/dev-python/h5py/Manifest
+++ b/dev-python/h5py/Manifest
@@ -1 +1,2 @@
 DIST h5py-3.12.1.tar.gz 411457 BLAKE2B 
c8e2bb453b9f7f1a79b9061ec3564bd8f1175c286a163b43f340cb9fc93f0e279131e4ed658066b870237046766aaff1289f22d84ee318108c96840d257baafa
 SHA512 
a96dc5b7a14408c73db3ef758e0d3cff5d4469d6efe19a71af69e049f434aa62f01fbf44464cc5a3d15b89f00b9864cbb42b1b1e59bf3f520b458007f8819cd3
+DIST h5py-3.13.0.tar.gz 414876 BLAKE2B 
4c46711c78c6d88a50e4dbb046b55cba003be87199fe25f74c2dfedd04503a79e1b0d3e01b353e8a02066f6824168f666d8a96b6a834093e165060da1402be36
 SHA512 
9f9f6aab8d4e82dcc64d8ae20e6ecdd894c37313c8234fd14b84af08afaf2847bdce1334e86026381dc45a3edf8f1954c6e8acfc553140f2bd42315f64a30b76

diff --git a/dev-python/h5py/h5py-3.13.0.ebuild 
b/dev-python/h5py/h5py-3.13.0.ebuild
new file mode 100644
index 000000000000..45485b140535
--- /dev/null
+++ b/dev-python/h5py/h5py-3.13.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Simple Python interface to HDF5 files"
+HOMEPAGE="
+       https://www.h5py.org/
+       https://github.com/h5py/h5py/
+       https://pypi.org/project/h5py/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos 
~x64-macos"
+IUSE="examples"
+
+DEPEND="
+       >=dev-python/numpy-1.17.3:=[${PYTHON_USEDEP}]
+       >=sci-libs/hdf5-1.10.4:=[hl(+)]
+"
+RDEPEND="
+       ${DEPEND}
+"
+
+BDEPEND="
+       >=dev-python/cython-0.29.31[${PYTHON_USEDEP}]
+       >=dev-python/numpy-1.14.5[${PYTHON_USEDEP}]
+       dev-python/pkgconfig[${PYTHON_USEDEP}]
+       test? (
+               dev-python/qtpy[testlib,${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+       dev-python/sphinx-rtd-theme
+
+python_prepare_all() {
+       # avoid pytest-mpi dep, we do not use mpi anyway
+       sed -i -e 's:pytest-mpi::' pytest.ini || die
+       distutils-r1_python_prepare_all
+
+       export H5PY_SETUP_REQUIRES=0
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+
+       cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+       epytest -m "not mpi"
+}
+
+python_install_all() {
+       use examples && dodoc -r examples
+       distutils-r1_python_install_all
+}

Reply via email to