# Template file for 'python3-jupyter_client'
pkgname=python3-jupyter_client
version=8.6.2
revision=2
build_style=python3-pep517
# 1st: random fail (see https://github.com/jupyter/jupyter_client/issues/979)
# 2nd: fail by timeout in ~ 60s
make_check_args="
 --deselect tests/test_kernelmanager.py::TestParallel::test_start_parallel_process_kernels[tcp]
 --deselect tests/test_restarter.py::test_restart_check[ipc]"
hostmakedepends="hatchling"
depends="python3-dateutil python3-jupyter_core python3-pyzmq python3-tornado"
checkdepends="$depends inetutils-ifconfig iproute2 openssh
 python3-pytest-jupyter python3-pytest-timeout python3-pytest-xdist"
short_desc="Jupyter protocol client APIs"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/jupyter_client"
changelog="https://raw.githubusercontent.com/jupyter/jupyter_client/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/j/jupyter_client/jupyter_client-${version}.tar.gz"
checksum=2bda14d55ee5ba58552a8c53ae43d215ad9868853489213f37da060ced54d8df
conflicts="python-jupyter_client<=5.2.4_2"
make_check=extended  # cannot be tested without python3-ipython_ipykernel

if [ "$XBPS_CHECK_PKGS" = full ]; then
	# this would cause a build-time circular dependency
	checkdepends+=" python3-ipython_ipykernel"
fi

post_install() {
	vlicense LICENSE
}
