# Template file for 'python3-ipython_ipykernel'
pkgname=python3-ipython_ipykernel
version=7.2.0
revision=1
build_style=python3-pep517
# run all tests available
make_check_target="tests"
# the following test does not work headless
make_check_args="--deselect tests/test_matplotlib_eventloops.py::test_matplotlib_gui"
hostmakedepends="hatchling python3-jupyter_client"
depends="python3-comm python3-ipython python3-jupyter_client
 python3-jupyter_core python3-matplotlib-inline python3-nest_asyncio
 python3-packaging python3-psutil python3-pyzmq python3-tornado
 python3-traitlets"
checkdepends="$depends python3-flaky python3-pytest-asyncio
 python3-pytest-timeout python3-trio python3-curio python3-matplotlib
 python3-PyQt5 python3-PyQt5-svg python3-pytest-xdist python3-ipyparallel
 python3-pytest-cov"
short_desc="IPython kernel for Jupyter"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://github.com/ipython/ipykernel"
changelog="https://raw.githubusercontent.com/ipython/ipykernel/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz"
checksum=18ed160b6dee2cbb16e5f3575858bc19d8f1fe6046a9a680c708494ce31d909e

if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ] &&
	[ "$XBPS_TARGET_LIBC" = "musl" ]; then
	# Also fails "on Windows and MacOS Python 3.8+" so just disable it
	make_check_args+=" --deselect tests/test_kernel.py::test_subprocess_print"
fi

post_install() {
	vlicense LICENSE
}
