From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- dev-python/h5py/Manifest | 2 ++ dev-python/h5py/h5py-3.6.0.ebuild | 70 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 dev-python/h5py/h5py-3.6.0.ebuild (limited to 'dev-python/h5py') diff --git a/dev-python/h5py/Manifest b/dev-python/h5py/Manifest index 4800ccc7b333..0c8a3533ad28 100644 --- a/dev-python/h5py/Manifest +++ b/dev-python/h5py/Manifest @@ -1,3 +1,5 @@ DIST h5py-3.3.0.tar.gz 380221 BLAKE2B 0fd44e780304f0d56e8fd8fd0f42142c80935fa7cc3e6c53ff68860f32755d3d5e576fc283bb9b21e9d7dfb905bdeed6656eeaa33e48cefd34de86fde3efa49d SHA512 f1ce944375da3db65829e8a9d667ee7ffa2f863e408aa4ccac0de9d999e0710ebcb1e116537616649fcfd05731cad3cbd968c9593f0ba0fd4348ee06c74d9dae +DIST h5py-3.6.0.tar.gz 384160 BLAKE2B 354764bb002cd342623aa962de88a24ee45156c0a2d61088508017980e407e90f85e65da9d3e29a6745dbca754ba1708700fbea4f4123a10a620bc758cbaa3ae SHA512 f3a108d16578ced552fcac4fceb7f3180ee71a3c8f6caa8702fd9989728d8284afb9d85f1239648e10d14f3532c772f46d05f8306bb8b305d98b162d7604683b EBUILD h5py-3.3.0.ebuild 1356 BLAKE2B dcda3ffd431351c36778d5fa9fb1d9a4b7bc104de0e4d80ed01656f10b87c52b923441dc35d0b5ae05c920943c4c6f3774d205c4829210555361aeb224bda708 SHA512 4418c532c552cb3e1f168c272093ef4fef47781a1794698c3ba02ec7c5dbd9e65f873c6c5b12021822a8382481296def58af6c59ed6c980f041ff43c1d462699 +EBUILD h5py-3.6.0.ebuild 1466 BLAKE2B 6f6433f0726a575b606d004d83b575508acb5feb3dcb9e7b4b6280a8bf7581fb9427517e3003cd73f4a34a2a5597a4f5b54be1bbb9f84a5144a092f36f3e6dc9 SHA512 7380ab2f8cca1c9c8b691b1f71c3ac9373c5aff45a9426cac7b3b47981d90c34a9ce8191af7340df1181b011f15513cf949f1fb2d2717b557fd4b432358463fe MISC metadata.xml 1016 BLAKE2B ab015a188dadacae6ad496f541bb6d4df97631d5d1601e21396509675f03da4060dbce67588e77cbffea5a7b763344e95b61a7ab482d6b64a16b90b0f1484d0c SHA512 fc4debeec5b4fb1b22f1c1f23d9dc2bf090e88451f2e456b5c7c82d11abbce789ecc79993dff9520a4a407c94299a10e1eddce796a6d44e216fbc7702dc23dc9 diff --git a/dev-python/h5py/h5py-3.6.0.ebuild b/dev-python/h5py/h5py-3.6.0.ebuild new file mode 100644 index 000000000000..c6245c6d9fd4 --- /dev/null +++ b/dev-python/h5py/h5py-3.6.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Simple Python interface to HDF5 files" +HOMEPAGE=" + https://www.h5py.org/ + https://github.com/h5py/h5py/ + https://pypi.org/project/h5py/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +# disable mpi until mpi4py gets python3_8 +#IUSE="examples mpi" +IUSE="examples" + +#RDEPEND="sci-libs/hdf5:=[mpi=,hl(+)] +DEPEND=" + sci-libs/hdf5:=[hl(+)] +" +RDEPEND=" + ${DEPEND} + >=dev-python/numpy-1.14.5[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + >=dev-python/numpy-1.14.5[${PYTHON_USEDEP}] + dev-python/pkgconfig[${PYTHON_USEDEP}] + test? ( + dev-python/QtPy[testlib,${PYTHON_USEDEP}] + ) +" +# mpi? ( virtual/mpi ) +# mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] ) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/alabaster + +#pkg_setup() { +# use mpi && export CC=mpicc +#} + +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() { + 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 +} -- cgit v1.2.3