From cfe2bc7371cd80428e985c3135cf7541e4f6badf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 5 May 2025 12:33:35 -0300 Subject: [PATCH] python3-nbclassic: update to 1.3.1. --- .../patches/fix-warning.patch | 11 ----- .../patches/python3.13.patch | 41 ------------------- srcpkgs/python3-nbclassic/template | 13 +++--- 3 files changed, 7 insertions(+), 58 deletions(-) delete mode 100644 srcpkgs/python3-nbclassic/patches/fix-warning.patch delete mode 100644 srcpkgs/python3-nbclassic/patches/python3.13.patch diff --git a/srcpkgs/python3-nbclassic/patches/fix-warning.patch b/srcpkgs/python3-nbclassic/patches/fix-warning.patch deleted file mode 100644 index 161e86deeb7..00000000000 --- a/srcpkgs/python3-nbclassic/patches/fix-warning.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/nbclassic/notebookapp.py -+++ b/nbclassic/notebookapp.py -@@ -324,7 +324,7 @@ class NotebookApp( - router.add_rules(core_rules) - router.add_rules(static_handlers) - router.add_rules(final_rules) -- print(""" -+ print(r""" - _ _ _ _ - | | | |_ __ __| |__ _| |_ ___ - | |_| | '_ \/ _` / _` | _/ -_) diff --git a/srcpkgs/python3-nbclassic/patches/python3.13.patch b/srcpkgs/python3-nbclassic/patches/python3.13.patch deleted file mode 100644 index af7962b20c3..00000000000 --- a/srcpkgs/python3-nbclassic/patches/python3.13.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 2545d900b40bbb9fa3ea266afa617e6e0be70c71 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?= -Date: Sat, 7 Sep 2024 03:37:00 +0200 -Subject: [PATCH] Replace pipes with shlex (#286) - -pipes module has been deprecated in Python 3.11 and removed in 3.13. https://peps.python.org/pep-0594/ ---- - setupbase.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/setupbase.py b/setupbase.py -index 80f28b6eb..4e7a4feec 100644 ---- a/setupbase.py -+++ b/setupbase.py -@@ -12,7 +12,7 @@ - - import os - import re --import pipes -+import shlex - import shutil - import sys - -@@ -27,7 +27,7 @@ - from subprocess import list2cmdline - else: - def list2cmdline(cmd_list): -- return ' '.join(map(pipes.quote, cmd_list)) -+ return ' '.join(map(shlex.quote, cmd_list)) - - #------------------------------------------------------------------------------- - # Useful globals and utility functions -@@ -486,7 +486,7 @@ def run(self): - try: - run(['lessc', - '--source-map', -- '--include-path=%s' % pipes.quote(static), -+ '--include-path=%s' % shlex.quote(static), - src, - dst, - ], cwd=repo_root, env=env) diff --git a/srcpkgs/python3-nbclassic/template b/srcpkgs/python3-nbclassic/template index 88df2c9352c..53c0599842f 100644 --- a/srcpkgs/python3-nbclassic/template +++ b/srcpkgs/python3-nbclassic/template @@ -1,11 +1,12 @@ # Template file for 'python3-nbclassic' pkgname=python3-nbclassic -version=1.1.0 -revision=2 +version=1.3.1 +revision=1 build_style=python3-pep517 -make_build_args="--skip-dependency-check" -hostmakedepends="python3-jupyter_packaging python3-jupyter_server" -depends="mathjax2 python3-notebook_shim" +hostmakedepends="hatchling hatch-jupyter-builder python3-jupyter_server + python3-setuptools python3-Babel yarn" +depends="mathjax2 python3-ipython_ipykernel python3-ipython_genutils + python3-nest_asyncio python3-notebook_shim" checkdepends="$depends python3-pytest-jupyter" short_desc="Jupyter Notebook as a Jupyter Server Extension" maintainer="dkwo , Gonzalo TornarĂ­a " @@ -13,7 +14,7 @@ license="BSD-3-Clause" homepage="https://github.com/jupyter/nbclassic" changelog="https://raw.githubusercontent.com/jupyter/nbclassic/main/CHANGELOG.md" distfiles="${PYPI_SITE}/n/nbclassic/nbclassic-${version}.tar.gz" -checksum=77b77ba85f9e988f9bad85df345b514e9e64c7f0e822992ab1df4a78ac64fc1e +checksum=4c52da8fc88f9f73ef512cc305091d5ce726bdca19f44ed697cb5ba12dcaad3c post_install() { vlicense LICENSE