git: 592866db80ed - main - misc/py-pyviz-comms: New port: JupyterLab extension for rendering HoloViz content

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 22 Dec 2023 03:29:29 UTC
The branch main has been updated by yuri:

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

commit 592866db80ede0b037ddd11e34497a3ec342c0d6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-22 02:48:54 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-22 03:29:26 +0000

    misc/py-pyviz-comms: New port: JupyterLab extension for rendering HoloViz content
---
 misc/Makefile                 |  1 +
 misc/py-pyviz-comms/Makefile  | 26 ++++++++++++++++++++++++++
 misc/py-pyviz-comms/distinfo  |  3 +++
 misc/py-pyviz-comms/pkg-descr |  4 ++++
 4 files changed, 34 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 2829e81a0bd9..3d3aa8ba15b9 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -468,6 +468,7 @@
     SUBDIR += py-python-utils
     SUBDIR += py-pytorch
     SUBDIR += py-pytorch-lightning
+    SUBDIR += py-pyviz-comms
     SUBDIR += py-qiskit-machine-learning
     SUBDIR += py-scikit-fusion
     SUBDIR += py-scikit-quant
diff --git a/misc/py-pyviz-comms/Makefile b/misc/py-pyviz-comms/Makefile
new file mode 100644
index 000000000000..b6d564b3f5c4
--- /dev/null
+++ b/misc/py-pyviz-comms/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	pyviz-comms
+DISTVERSION=	3.0.0
+CATEGORIES=	misc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	JupyterLab extension for rendering HoloViz content
+WWW=		https://github.com/holoviz/pyviz_comms
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-nodejs-version>=0:devel/py-hatch-nodejs-version@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatch-jupyter-builder>=0.8.2:devel/py-hatch-jupyter-builder@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>=1.5.0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.0.0<5:devel/py-jupyterlab@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}param>0:devel/py-param@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-pyviz-comms/distinfo b/misc/py-pyviz-comms/distinfo
new file mode 100644
index 000000000000..d4ad84d504c9
--- /dev/null
+++ b/misc/py-pyviz-comms/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703209865
+SHA256 (pyviz_comms-3.0.0.tar.gz) = f4ca91e4157a64e3abed7cc249e60b9a8d2532f8832f1cb075914d19337d2ba6
+SIZE (pyviz_comms-3.0.0.tar.gz) = 194326
diff --git a/misc/py-pyviz-comms/pkg-descr b/misc/py-pyviz-comms/pkg-descr
new file mode 100644
index 000000000000..dd2dfdd80d45
--- /dev/null
+++ b/misc/py-pyviz-comms/pkg-descr
@@ -0,0 +1,4 @@
+pyviz_comms offers a simple bidirectional communication architecture between
+Python and JavaScript, with support for Jupyter comms in both the classic
+notebook and Jupyterlab. Available for use by any PyViz tool, but currently
+primarily used by HoloViz tools.