# Template file for 'python3-ipyparallel'
pkgname=python3-ipyparallel
version=9.0.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling"
depends="python3-entrypoints python3-decorator python3-pyzmq python3-traitlets
 python3-ipython python3-jupyter_client python3-ipython_ipykernel
 python3-tornado python3-psutil python3-dateutil python3-tqdm"
checkdepends="$depends python3-pytest python3-pytest-asyncio
 python3-testpath python3-matplotlib python3-joblib python3-numpy
 python3-pandas"
short_desc="Interactive parallel computing in Python"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-3-Clause"
homepage="https://ipyparallel.readthedocs.io/"
changelog="https://ipyparallel.readthedocs.io/en/latest/changelog.html"
distfiles="${PYPI_SITE}/i/ipyparallel/ipyparallel-${version}.tar.gz"
checksum=70601cbaf9a169d350ffe22c82d5bbdfe6dfe4c4df02836d9990e9c559b5bcb6
# having HOME=/tmp confuses a few tests
make_check_pre="env HOME=/home"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	# tests are broken in musl
	make_check=no
fi

post_install() {
	vlicense COPYING.md
	mv "${DESTDIR}/usr/etc" "${DESTDIR}/etc"
}
