git: ae8fafaf96bc - main - graphics/py-kaleido: Generate static images for Plotly

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Tue, 15 Sep 2026 19:52:34 UTC
The branch main has been updated by jwb:

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

commit ae8fafaf96bc8ece75472d535db0f23969f53a91
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2026-09-15 19:52:00 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2026-09-15 19:52:33 +0000

    graphics/py-kaleido: Generate static images for Plotly
    
    Kaleido is a cross-platform library for generating static images for
    Plotly's visualization library. After installing it, you can use
    fig.write_image("filename.png") to save a plot to a file.
---
 graphics/Makefile                              |  1 +
 graphics/py-kaleido/Makefile                   | 25 +++++++++++++++++++++++++
 graphics/py-kaleido/distinfo                   |  3 +++
 graphics/py-kaleido/files/patch-pyproject.toml |  9 +++++++++
 graphics/py-kaleido/pkg-descr                  |  3 +++
 5 files changed, 41 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index b6e96275c4d7..71522f7c6187 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -972,6 +972,7 @@
     SUBDIR += py-img2pdf
     SUBDIR += py-imutils
     SUBDIR += py-jbpy
+    SUBDIR += py-kaleido
     SUBDIR += py-kornia
     SUBDIR += py-kornia-rs
     SUBDIR += py-leather
diff --git a/graphics/py-kaleido/Makefile b/graphics/py-kaleido/Makefile
new file mode 100644
index 000000000000..0df5054da48e
--- /dev/null
+++ b/graphics/py-kaleido/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=		kaleido
+DISTVERSION=		1.4.0
+CATEGORIES=		graphics python
+MASTER_SITES=		PYPI
+PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jwb@FreeBSD.org
+COMMENT=	Cross-platform library for generating static images for Plotly
+WWW=		https://github.com/plotly/kaleido
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-git-versioning>0:devel/py-setuptools-git-versioning@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}async_timeout>0:devel/py-async_timeout@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}choreographer>0:www/py-choreographer@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-kaleido/distinfo b/graphics/py-kaleido/distinfo
new file mode 100644
index 000000000000..c808fe1967b1
--- /dev/null
+++ b/graphics/py-kaleido/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788787533
+SHA256 (kaleido-1.4.0.tar.gz) = 7b893e3e24e28f180844fcf1b0255d1bc3787377507b4669a555a74bcf1d1f92
+SIZE (kaleido-1.4.0.tar.gz) = 69673
diff --git a/graphics/py-kaleido/files/patch-pyproject.toml b/graphics/py-kaleido/files/patch-pyproject.toml
new file mode 100644
index 000000000000..d5b9087b059c
--- /dev/null
+++ b/graphics/py-kaleido/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig	2024-11-21 21:37:56 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=65.0.0", "wheel", "setuptools-git-versioning"]
++requires = ["setuptools>=63.0.0", "wheel", "setuptools-git-versioning"]
+ build-backend = "setuptools.build_meta"
+ 
+ [tool.setuptools.packages]
diff --git a/graphics/py-kaleido/pkg-descr b/graphics/py-kaleido/pkg-descr
new file mode 100644
index 000000000000..7680d27e4542
--- /dev/null
+++ b/graphics/py-kaleido/pkg-descr
@@ -0,0 +1,3 @@
+Kaleido is a cross-platform library for generating static images for
+Plotly's visualization library. After installing it, you can use
+fig.write_image("filename.png") to save a plot to a file.