git: e3ca4a0d6ea9 - main - devel/py-jupyter-server-ydoc: Add py-jupyter-server-ydoc 1.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 09:23:47 UTC
The branch main has been updated by sunpoet:

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

commit e3ca4a0d6ea9bace3883d335a4e5dbb1a8fcaeba
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-31 09:07:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-31 09:22:51 +0000

    devel/py-jupyter-server-ydoc: Add py-jupyter-server-ydoc 1.0.0
    
    jupyter-server-ydoc is a jupyter-server extension integrating collaborative
    shared models.
    
    The collaborative shared models are used for both:
    - real time collaboration, and
    - server-side execution of notebooks
---
 MOVED                                  |  1 -
 devel/Makefile                         |  1 +
 devel/py-jupyter-server-ydoc/Makefile  | 31 +++++++++++++++++++++++++++++++
 devel/py-jupyter-server-ydoc/distinfo  |  3 +++
 devel/py-jupyter-server-ydoc/pkg-descr |  6 ++++++
 5 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 397e740fb255..1391000a1b58 100644
--- a/MOVED
+++ b/MOVED
@@ -2482,7 +2482,6 @@ net/rubygem-octokit5|net/rubygem-octokit|2023-10-06|Use net/rubygem-octokit
 games/minilens||2023-10-08|Has expired: Depends on expired devel/godot2 (use devel/godot instead)
 games/tanks-of-freedom||2023-10-08|Has expired: Depends on expired devel/godot2 (use devel/godot instead)
 devel/godot2|devel/godot|2023-10-08|Has expired: Requires legacy OpenSSL 1.1.1 so use devel/godot
-devel/py-jupyter-server-ydoc|devel/py-jupyter-collaboration|2023-10-11|Remove obsoleted port. Use devel/py-jupyter-collaboration instead
 devel/py-packaging21|devel/py-packaging|2023-10-11|Remove obsoleted port. Use devel/py-packaging instead
 devel/rubygem-google-protobuf323|devel/rubygem-google-protobuf|2023-10-11|Remove obsoleted port. Use devel/rubygem-google-protobuf instead
 audio/rem||2023-10-12|Has expired: Deprecated, replaced by libre
diff --git a/devel/Makefile b/devel/Makefile
index e8f8ec735afd..15617045f79d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5110,6 +5110,7 @@
     SUBDIR += py-jupyter-server-fileid
     SUBDIR += py-jupyter-server-mathjax
     SUBDIR += py-jupyter-server-terminals
+    SUBDIR += py-jupyter-server-ydoc
     SUBDIR += py-jupyter-telemetry
     SUBDIR += py-jupyter-ydoc
     SUBDIR += py-jupyter_console
diff --git a/devel/py-jupyter-server-ydoc/Makefile b/devel/py-jupyter-server-ydoc/Makefile
new file mode 100644
index 000000000000..911f80e9224a
--- /dev/null
+++ b/devel/py-jupyter-server-ydoc/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	jupyter-server-ydoc
+PORTVERSION=	1.0.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	jupyter_server_ydoc-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Jupyter-server extension integrating collaborative shared models
+WWW=		https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/ \
+		https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-server-ydoc \
+		https://github.com/jupyterlab/jupyter-collaboration
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=1.4.0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18.0:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyter-events>=0.10.0:devel/py-jupyter-events@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyter-server>=2.11.1<3.0.0:devel/py-jupyter-server@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyter-server-fileid>=0.7.0<1:devel/py-jupyter-server-fileid@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyter-ydoc>=2.1.2<4.0.0:devel/py-jupyter-ydoc@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycrdt>=0:devel/py-pycrdt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycrdt-websocket>=0.15.0<0.16.0:devel/py-pycrdt-websocket@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-jupyter-server-ydoc/distinfo b/devel/py-jupyter-server-ydoc/distinfo
new file mode 100644
index 000000000000..383d415dc735
--- /dev/null
+++ b/devel/py-jupyter-server-ydoc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1730301004
+SHA256 (jupyter_server_ydoc-1.0.0.tar.gz) = 3017524c1da068815b748c8f1ebe7ec08eda047fc597ce72c125b18009a391e9
+SIZE (jupyter_server_ydoc-1.0.0.tar.gz) = 24542
diff --git a/devel/py-jupyter-server-ydoc/pkg-descr b/devel/py-jupyter-server-ydoc/pkg-descr
new file mode 100644
index 000000000000..c9fc3fecb97c
--- /dev/null
+++ b/devel/py-jupyter-server-ydoc/pkg-descr
@@ -0,0 +1,6 @@
+jupyter-server-ydoc is a jupyter-server extension integrating collaborative
+shared models.
+
+The collaborative shared models are used for both:
+- real time collaboration, and
+- server-side execution of notebooks