git: 3feab25185e0 - main - www/py-notebook: Allow build with py-jupyterlab 4.3.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 15 Nov 2024 10:21:36 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3feab25185e056dba80b333dd8bd5f1784f2c89c

commit 3feab25185e056dba80b333dd8bd5f1784f2c89c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-15 10:21:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-15 10:21:17 +0000

    www/py-notebook: Allow build with py-jupyterlab 4.3.0+
    
    - Bump PORTREVISION for package change
---
 www/py-notebook/Makefile                   |  5 +++--
 www/py-notebook/files/patch-pyproject.toml | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/www/py-notebook/Makefile b/www/py-notebook/Makefile
index 0b551b7e1dec..ca2f006bb3f2 100644
--- a/www/py-notebook/Makefile
+++ b/www/py-notebook/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	notebook
 DISTVERSION=	7.2.2
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,9 +14,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-jupyter-builder>=0.5:devel/py-hatch-jupyter-builder@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}hatchling>=1.11:devel/py-hatchling@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.2.0<4.3:devel/py-jupyterlab@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.2.0<4.4:devel/py-jupyterlab@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jupyter-server>=2.4.0<3:devel/py-jupyter-server@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.2.0<4.3:devel/py-jupyterlab@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.2.0<4.4:devel/py-jupyterlab@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyterlab-server>=2.27.1<3:devel/py-jupyterlab-server@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}notebook-shim>=0.2<0.3:devel/py-notebook-shim@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tornado>=6.2.0:www/py-tornado@${PY_FLAVOR}
diff --git a/www/py-notebook/files/patch-pyproject.toml b/www/py-notebook/files/patch-pyproject.toml
new file mode 100644
index 000000000000..2f542761bd25
--- /dev/null
+++ b/www/py-notebook/files/patch-pyproject.toml
@@ -0,0 +1,18 @@
+--- pyproject.toml.orig	2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["hatchling>=1.11", "jupyterlab>=4.2.0,<4.3"]
++requires = ["hatchling>=1.11", "jupyterlab>=4.2.0,<4.4"]
+ build-backend = "hatchling.build"
+ 
+ [project]
+@@ -32,7 +32,7 @@ dependencies = [
+ ]
+ dependencies = [
+     "jupyter_server>=2.4.0,<3",
+-    "jupyterlab>=4.2.0,<4.3",
++    "jupyterlab>=4.2.0,<4.4",
+     "jupyterlab_server>=2.27.1,<3",
+     "notebook_shim>=0.2,<0.3",
+     "tornado>=6.2.0",