# Template file for 'jupyterlab'
pkgname=jupyterlab
version=4.4.10
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-jupyter-builder"
depends="nodejs python3-async-lru python3-httpx python3-ipython_ipykernel
 python3-Jinja2 python3-jupyter_core python3-jupyter_server python3-tornado
 python3-packaging python3-setuptools python3-jupyter-lsp
 python3-traitlets 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=521c017508af4e1d6d9d8a9d90f47a11c61197ad63b2178342489de42540a615

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
}
