# Template file for 'jupyterlab'
pkgname=jupyterlab
version=4.1.5
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-jupyter-builder"
depends="nodejs python3-async-lru python3-httpx python3-ipython_ipykernel
 python3-jupyterlab_server python3-notebook_shim"
checkdepends="$depends python3-pytest-jupyter python3-pytest-xdist"
short_desc="JupyterLab computational environment"
maintainer="dkwo <npiazza@disroot.org>, Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="custom:jupyterlab"
homepage="https://github.com/jupyterlab/jupyterlab/"
changelog="https://raw.githubusercontent.com/jupyterlab/jupyterlab/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/j/jupyterlab/jupyterlab-${version}.tar.gz"
checksum=c9ad75290cb10bfaff3624bf3fbb852319b4cce4c456613f8ebbaa98d03524db

if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
	# this test fails on CI (network timeout)
	make_check_args="
	 --deselect=jupyterlab/tests/test_build_api.py::TestBuildAPI
	"
fi

post_install() {
	mv ${DESTDIR}/usr/etc ${DESTDIR}
	vlicense LICENSE
}
