# Template file for 'python3-h5py' pkgname=python3-h5py version=3.15.1 revision=2 build_style=python3-module build_helper="numpy" hostmakedepends="python3-setuptools python3-Cython python3-pkgconfig hdf5-devel" makedepends="python3-devel hdf5-devel" depends="python3-numpy" short_desc="HDF5 for Python" maintainer="Andrew J. Hesford " license="BSD-3-Clause" homepage="http://www.h5py.org/" distfiles="${PYPI_SITE}/h/h5py/h5py-${version}.tar.gz" checksum=c86e3ed45c4473564de55aa83b6fc9e5ead86578773dfbd93047380042e26b69 # Tests require unpackaged pytest-mpi make_check=no post_patch() { if [ -n "$CROSS_BUILD" ] && [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then # numpy.complex256 is N/A on 32 bit; it is misdetected if host # is 64 bit. Circumvent detection on affected platforms. vsed -i setup_build.py -e 's/\(complex256_support =\).*/\1 False/' fi } pre_build() { # Build in parallel make_build_args+=" ${makejobs}" } post_install() { vlicense LICENSE }