mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=jupyter-nbclassic
|
|
pkgver=0.5.2
|
|
pkgrel=0
|
|
pkgdesc="Jupyter notebook as jupyter server extension"
|
|
url="https://github.com/jupyter/nbclassic"
|
|
# s390x, ppc64le: no jupyter-server
|
|
arch="noarch !armhf !s390x !ppc64le"
|
|
license="BSD-3-Clause"
|
|
depends="py3-traitlets jupyter-server jupyter-notebook-shim"
|
|
makedepends="py3-gpep517 py3-jupyter-packaging"
|
|
checkdepends="py3-pytest py3-pytest-tornasync py3-pytest-jupyter"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/nbclassic/releases/download/v$pkgver/nbclassic-$pkgver.tar.gz"
|
|
builddir="$srcdir/nbclassic-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c26b86ee5958a6bb2b891f0bfff7fd90054727977a5cb29aacf1681e56490dcc7b8275709d74597e7d99940493a39499b8c8832a92fcf1a57955f20e100a10a4 jupyter-nbclassic-0.5.2.tar.gz
|
|
"
|