git: 8d4bc1304926 - main - devel/py-jupyter-server-ydoc: Allow build with py-ypy-websocket 0.9.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 27 Apr 2023 15:53:02 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8d4bc1304926f96eef662031ba964eb21404e764

commit 8d4bc1304926f96eef662031ba964eb21404e764
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-27 15:46:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-27 15:46:12 +0000

    devel/py-jupyter-server-ydoc: Allow build with py-ypy-websocket 0.9.0
    
    - Bump PORTREVISION for package change
---
 devel/py-jupyter-server-ydoc/Makefile                   |  3 ++-
 devel/py-jupyter-server-ydoc/files/patch-pyproject.toml | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-jupyter-server-ydoc/Makefile b/devel/py-jupyter-server-ydoc/Makefile
index 12b14aa7f038..689351d4dd52 100644
--- a/devel/py-jupyter-server-ydoc/Makefile
+++ b/devel/py-jupyter-server-ydoc/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	jupyter-server-ydoc
 PORTVERSION=	0.8.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0.25:devel/py-hatchling@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jupyter-server-fileid>=0.6.0<1:devel/py-jupyter-server-fileid@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyter-ydoc>=0.2.0<0.4.0:devel/py-jupyter-ydoc@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ypy-websocket>=0.8.2<0.9.0:devel/py-ypy-websocket@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}ypy-websocket>=0.8.2<0.9.0_99:devel/py-ypy-websocket@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent pep517
diff --git a/devel/py-jupyter-server-ydoc/files/patch-pyproject.toml b/devel/py-jupyter-server-ydoc/files/patch-pyproject.toml
new file mode 100644
index 000000000000..c9769747c7f4
--- /dev/null
+++ b/devel/py-jupyter-server-ydoc/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -22,7 +22,7 @@ classifiers = [
+ requires-python = ">=3.7"
+ dependencies = [
+   "jupyter_ydoc>=0.2.0,<0.4.0",
+-  "ypy-websocket>=0.8.2,<0.9.0",
++  "ypy-websocket>=0.8.2,<=0.9.0",
+   "jupyter_server_fileid >=0.6.0,<1"
+ ]
+