1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/jupyter-server/APKBUILD
2023-02-04 03:02:49 +00:00

76 lines
1.9 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-server
pkgver=2.2.1
pkgrel=0
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
"
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
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
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
6baa1fed933a7600e52c9e13ce6ae22556ebe6cb153218b174b1c26f5ff2662870d14bac18c719be358d68185863fadf00d672470f033b4883f18b98b56f842c jupyter-server-2.2.1.tar.gz
"