aports/community/jupyter-server/APKBUILD
2023-04-22 17:25:26 +02:00

80 lines
2.1 KiB
Plaintext

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-server
pkgver=2.5.0
pkgrel=1
pkgdesc="Backend for Jupyter web applications"
url="https://github.com/jupyter-server/jupyter_server"
# s390x: no py3-argon2-cffi
# ppc64le, armhf: no py3-anyio
arch="noarch !s390x !ppc64le !armhf"
license="BSD-3-Clause"
depends="
jupyter-nbconvert
jupyter-nbformat
jupyter-server-terminals
py3-anyio
py3-argon2-cffi
py3-jinja2
py3-jupyter-events
py3-jupyter_client
py3-jupyter_core
py3-packaging
py3-prometheus-client
py3-send2trash
py3-terminado
py3-tornado
py3-traitlets
py3-websocket-client
"
makedepends="
py3-gpep517
py3-hatch-jupyter-builder
py3-hatchling
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="
py3-ipykernel
py3-pytest
py3-pytest-console-scripts
py3-pytest-jupyter
py3-pytest-timeout
py3-pytest-tornasync
py3-requests
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter-server/jupyter_server/releases/download/v$pkgver/jupyter_server-$pkgver.tar.gz"
builddir="$srcdir/jupyter_server-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
# test_server_extension_list requires another pytest dependency to be packaged
# test_terminal is throwing errors related to tornado
# test_authorizer is throwing key errors for terminal manager
# test_stop_extension is failing a single assert
# next test is not raising a HTTPError, needs more investigation
pytest \
--disable-warnings \
--deselect tests/extension/test_entrypoint.py::test_server_extension_list \
--deselect tests/test_terminal.py \
--deselect tests/auth/test_authorizer.py \
--deselect tests/extension/test_app.py::test_stop_extension \
--deselect tests/services/contents/test_manager.py::test_copy_big_dir
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
7145f60a73bf3d9aceff37aaf56b3b3a54c94fd9f13f06659387909cb1727759a082d11e983df4e687cc508461d5afb6e552f3ac09e30bebb1eb5e863992ad14 jupyter-server-2.5.0.tar.gz
"