# Template file for 'python3-jupyter_client'
pkgname=python3-jupyter_client
version=8.6.1
revision=1
build_style=python3-pep517
# tests fail otherwise with jupyter_core 5.5.0
make_check_args="-p no:unraisableexception"
hostmakedepends="hatchling"
depends="python3-dateutil python3-jupyter_core python3-pyzmq python3-tornado"
checkdepends="$depends inetutils-ifconfig iproute2 openssh
 python3-pytest-jupyter  python3-pytest-timeout"
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=e842515e2bab8e19186d89fdfea7abd15e39dd581f94e399f00e2af5a1652d3f
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
}
