diff --git a/srcpkgs/python3-jupyterlab_server/template b/srcpkgs/python3-jupyterlab_server/template index 41f51c913eb..5dec10ee2ce 100644 --- a/srcpkgs/python3-jupyterlab_server/template +++ b/srcpkgs/python3-jupyterlab_server/template @@ -1,18 +1,34 @@ # Template file for 'python3-jupyterlab_server' pkgname=python3-jupyterlab_server -version=2.10.3 -revision=3 -build_style=python3-module -hostmakedepends="python3-setuptools python3-jupyter_notebook python3-jupyter_server" -depends="python3-requests python3-json5 python3-Babel" -short_desc="Server components for JupyterLab and -like applications" +version=2.25.0 +revision=1 +build_style=python3-pep517 +hostmakedepends="hatchling" +depends="python3-jupyter_server python3-Babel python3-json5 python3-requests" +checkdepends="$depends python3-pytest-jupyter python3-openapi-core + python3-requests-mock python3-strict-rfc3339 python3-ruamel.yaml python3-pip" +short_desc="Server components for JupyterLab and JL-like applications" maintainer="dkwo " license="BSD-3-Clause" -homepage="https://jupyter.org" +homepage="https://github.com/jupyterlab/jupyterlab_server" +changelog="https://raw.githubusercontent.com/jupyterlab/jupyterlab_server/main/CHANGELOG.md" distfiles="${PYPI_SITE}/j/jupyterlab_server/jupyterlab_server-${version}.tar.gz" -checksum=3fb84a5813d6d836ceda773fb2d4e9ef3c7944dbc1b45a8d59d98641a80de80a -# Tests require unpackaged dependencies -make_check=no +checksum=77c2f1f282d610f95e496e20d5bf1d2a7706826dfb7b18f3378ae2870d272fb7 + +if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then + # tests setup fails on CI (no idea why) + make_check_args="-p no:unraisableexception" +fi + +do_check() { + # test_translation_api.py needs to run in a venv + local testdir="${wrksrc}/.xbps-testdir/$(date +%s)" + python3 -m venv --system-site-packages --without-pip "${testdir}" + + local testpy="${testdir}/bin/python3" + "${testpy}" -m installer dist/*.whl + PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest ${make_check_args} +} post_install() { vlicense LICENSE