aports/community/jupyter-notebook/APKBUILD
2023-04-29 02:06:21 +00:00

59 lines
1.4 KiB
Plaintext

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-notebook
pkgver=6.5.4
pkgrel=0
pkgdesc="Jupyter interactive notebook"
url="https://github.com/jupyter/notebook"
# py3-argon2-cffi is not available on s390x
# bower/npm not present on riscv64
# jupyter-nbclassic not present on ppc64le/armhf
arch="noarch !armhf !s390x !riscv64 !ppc64le"
license="BSD-3-Clause"
depends="
jupyter-nbclassic
jupyter-nbconvert
jupyter-nbformat
py3-argon2-cffi
py3-ipykernel
py3-ipython_genutils
py3-jinja2
py3-jupyter_client
py3-jupyter_core
py3-nest_asyncio
py3-prometheus-client
py3-pyzmq
py3-send2trash
py3-terminado
py3-tornado
py3-traitlets
"
makedepends="bower npm py3-setuptools"
checkdepends="py3-pytest"
options="!check" # lots of unpackaged dependencies + many dependencies would only work on x86_64
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/notebook/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/notebook-$pkgver"
# secfixes:
# 6.4.12-r0:
# - CVE-2022-29238
# 6.4.10-r0:
# - CVE-2022-24758
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix="/usr" --root="$pkgdir"
}
sha512sums="
18b216223c7c0d86b6aa1ff5ac3fe0a35400f986eadf1dede2a288ba22c0e92c3c7d8513f46e167b15d57c53ae91d31aed6100a0df4482f892491f7c04be6ac4 jupyter-notebook-6.5.4.tar.gz
"