Date: Wednesday, October 19, 2022 @ 06:13:29
Author: arojas
Revision: 1332805
upgpkg: jupyter-notebook 6.5.1-1: Update to 6.5.1
Modified:
jupyter-notebook/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-19 04:40:12 UTC (rev 1332804)
+++ PKGBUILD 2022-10-19 06:13:29 UTC (rev 1332805)
@@ -2,7 +2,7 @@
pkgname=jupyter-notebook
_pipname=notebook
-pkgver=6.4.12
+pkgver=6.5.1
pkgrel=1
pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
arch=('any')
@@ -10,18 +10,23 @@
license=('BSD')
depends=('python-jinja' 'python-tornado' 'python-terminado'
'python-traitlets' 'jupyter-nbformat' 'python-jupyter_core'
- 'python-jupyter_client' 'mathjax2' 'python-send2trash'
- 'jupyter-nbconvert' 'python-prometheus_client' 'python-argon2_cffi'
'python-ipython-genutils')
+ 'python-jupyter_client' 'python-send2trash' 'jupyter-nbconvert'
+ 'python-prometheus_client' 'python-argon2_cffi'
'python-ipython-genutils' 'jupyter-nbclassic')
# Much of their official dependency tree appears inverted and circular?
-makedepends=('python-build' 'python-installer' 'python-wheel'
'python-jupyter_packaging')
-checkdepends=('python-pytest' 'python-selenium' 'python-requests')
+makedepends=('python-build' 'python-installer' 'python-wheel'
'python-jupyter_packaging' 'python-setuptools')
+checkdepends=('python-pytest' 'python-requests')
optdepends=('pandoc: notebook export' 'jupyter-widgetsnbextension: interactive
widgets')
-replaces=('jupyter')
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-md5sums=('90a5b998e496ed4c18975d3a42960df0')
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz
+ https://github.com/jupyter/notebook/commit/ab716106.patch)
+md5sums=('6975a28fb97b5b144d5a2b8f89fea617'
+ 'abfa21489a538078aa285b32351bf04f')
# todo: report bug that mathjax and nbconvert is no longer optional
+prepare() {
+ patch -d notebook-$pkgver -p1 < ab716106.patch # Compatibility with
nbclassic 0.4.6
+}
+
build() {
cd notebook-$pkgver
python -m build --wheel --no-isolation
@@ -29,18 +34,12 @@
#check() {
# cd notebook-$pkgver
-# pytest
+# pytest -v
#}
package() {
cd notebook-$pkgver
-
- # needs node
python -m installer --destdir="$pkgdir" dist/*.whl
- # FS45999 use system mathjax
- _pythonpath=`python -c "from sysconfig import get_path;
print(get_path('platlib'))"`
- rm -r "$pkgdir"$_pythonpath/notebook/static/components/MathJax
- ln -s /usr/share/mathjax2
"$pkgdir"$_pythonpath/notebook/static/components/MathJax
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 jupyter-notebook.desktop
"$pkgdir/usr/share/applications/jupyter-notebook.desktop"