aports/testing/py3-jupyterlab/APKBUILD
Alistair Francis 3a4d5a62b9 testing/py3-jupyterlab3: new aport
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2025-03-16 22:36:49 +00:00

64 lines
1.7 KiB
Text

# Maintainer: Alistair Francis <alistair@alistair23.me>
pkgname=py3-jupyterlab
_pyname=jupyterlab
pkgver=4.3.5
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/"
# loongarch64, ppc64le, riscv64, s390x fail to fetch npm dependencies
# 32-bit architectures have the same issue
arch="noarch !armhf !armv7 !x86 !loongarch64 !ppc64le !riscv64 !s390x"
license="BSD-3-Clause"
depends="
jupyter-notebook-shim
python3
py3-async-lru
py3-httpx
py3-ipykernel
"
makedepends="
jupyter-notebook-shim
jupyter-server
nodejs
npm
py3-async-lru
py3-babel
py3-gpep517
py3-hatch-jupyter-builder
py3-hatchling
py3-httpx
py3-installer
py3-ipykernel
py3-json5
py3-jupyterlab_server
py3-poetry-core
py3-pytest-jupyter
py3-requests
py3-setuptools
py3-wheel
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
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="
5e7e1a21dcae23bed12f3826f94592b4ea88f47585ccd9dac50f3a6c54ff3be9e798c7dbcf7ecbf26594ee532c1678e424e43362f56c97d63dce7337f810af49 py3-jupyterlab-4.3.5.tar.gz
"