mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=jupyter-notebook
|
|
pkgver=6.4.10
|
|
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
|
|
arch="noarch !s390x !riscv64"
|
|
license="BSD-3-Clause"
|
|
depends="py3-jupyter_core
|
|
py3-ipython_genutils
|
|
py3-tornado
|
|
jupyter-nbformat
|
|
mathjax2
|
|
jupyter-nbconvert
|
|
py3-ipykernel
|
|
py3-nest_asyncio
|
|
py3-send2trash
|
|
py3-jupyter_client
|
|
py3-prometheus-client
|
|
py3-jinja2
|
|
py3-terminado
|
|
py3-pyzmq
|
|
py3-argon2-cffi
|
|
py3-traitlets
|
|
"
|
|
makedepends="bower npm py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
options="!check" # lots of unpackaged dependencies + many dependencies would only work on x86_64
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/notebook/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/notebook-$pkgver"
|
|
|
|
# secfixes:
|
|
# 6.4.10-r0:
|
|
# - CVE-2022-24758
|
|
|
|
build() {
|
|
# use system mathjax
|
|
sed -i 's/^.*MathJax.*$//' bower.json
|
|
sed -i 's/ mj(/ #mj(/' setupbase.py
|
|
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix="/usr" --root="$pkgdir"
|
|
|
|
# set install to use system mathjax
|
|
ln -s /usr/share/mathjax2 "$pkgdir/usr/lib/python3.10/site-packages/notebook/static/components/MathJax"
|
|
}
|
|
|
|
sha512sums="
|
|
5640844f1dbe7c2d536ed2f257f2d0f003683e7e7660fef8ed03a0db8bb80893efb6ae482de6be7e8f7cb68789174f43da028d0d39068bb1a3d6b8e59c5182f6 jupyter-notebook-6.4.10.tar.gz
|
|
"
|