# Maintainer: Alistair Francis <alistair@alistair23.me>
pkgname=py3-jupyterlab3
_pyname=jupyterlab
pkgver=3.6.7
pkgrel=0
pkgdesc="An extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture."
url="https://jupyterlab.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="
	jupyter-notebook-shim
	python3
	py3-async-lru
	py3-httpx
	py3-ipykernel
	"
makedepends="
	jupyter-notebook-shim
	jupyter-server
	py3-async-lru
	py3-babel
	py3-gpep517
	py3-hatchling
	py3-hatch-jupyter-builder
	py3-httpx
	py3-installer
	py3-ipykernel
	py3-jupyterlab_server
	py3-jupyter-packaging
	py3-json5
	py3-poetry-core
	py3-pytest-jupyter
	py3-requests
	py3-setuptools
	py3-wheel
	nodejs
	npm
	yarn
	"
checkdepends="py3-pytest py3-setuptools py3-pexpect"
source="py3-jupyterlab-$pkgver.tar.gz::https://github.com/jupyterlab/jupyterlab/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 1>&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest -k 'not test_python_render_simple_indent_guides and not test_python_render_line_range_indent_guides'
}


package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
e3f523d4ccf431491cff9edabf008e4ec1e295c81c80d8b787096d861954dff99da8dc3b52e6f468b3cf074c8ecc896dcfa7e9f20ae294cd1c8fa5f3bbf0559e  py3-jupyterlab-3.6.7.tar.gz
"
