git: dd5bb3ab4c85 - main - misc/py-google-ai-generativelanguage: New port: Google's Python Client for Generative Language API

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 19 Jul 2025 00:34:43 UTC
The branch main has been updated by yuri:

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

commit dd5bb3ab4c857784feacfae5aeaf3d0009e13307
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-07-19 00:16:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-07-19 00:32:02 +0000

    misc/py-google-ai-generativelanguage: New port: Google's Python Client for Generative Language API
---
 misc/Makefile                                  |  1 +
 misc/py-google-ai-generativelanguage/Makefile  | 27 ++++++++++++++++++++++++++
 misc/py-google-ai-generativelanguage/distinfo  |  3 +++
 misc/py-google-ai-generativelanguage/pkg-descr |  7 +++++++
 4 files changed, 38 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 72c35babe38c..5cb7fd94fb3c 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -444,6 +444,7 @@
     SUBDIR += py-fleep
     SUBDIR += py-fuzzy
     SUBDIR += py-gguf
+    SUBDIR += py-google-ai-generativelanguage
     SUBDIR += py-gpiozero
     SUBDIR += py-halo
     SUBDIR += py-hf-xet
diff --git a/misc/py-google-ai-generativelanguage/Makefile b/misc/py-google-ai-generativelanguage/Makefile
new file mode 100644
index 000000000000..1cf2e57e799e
--- /dev/null
+++ b/misc/py-google-ai-generativelanguage/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	google-ai-generativelanguage
+DISTVERSION=	0.6.18
+CATEGORIES=	misc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Google's Python Client for Generative Language API
+WWW=		https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-api-core>=1.34.1:www/py-google-api-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}google-auth>=2.14.1:security/py-google-auth@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}proto-plus>=1.22.3:devel/py-proto-plus@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}protobuf>=3.20.2:devel/py-protobuf@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+NO_ARCH=	yes
+
+# tests as of 0.6.18: 7018 passed, 433 warnings in 95.27s (0:01:35)
+
+.include <bsd.port.mk>
diff --git a/misc/py-google-ai-generativelanguage/distinfo b/misc/py-google-ai-generativelanguage/distinfo
new file mode 100644
index 000000000000..6823b48462f4
--- /dev/null
+++ b/misc/py-google-ai-generativelanguage/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1752881601
+SHA256 (google_ai_generativelanguage-0.6.18.tar.gz) = 274ba9fcf69466ff64e971d565884434388e523300afd468fc8e3033cd8e606e
+SIZE (google_ai_generativelanguage-0.6.18.tar.gz) = 1444757
diff --git a/misc/py-google-ai-generativelanguage/pkg-descr b/misc/py-google-ai-generativelanguage/pkg-descr
new file mode 100644
index 000000000000..0e1e37b29a57
--- /dev/null
+++ b/misc/py-google-ai-generativelanguage/pkg-descr
@@ -0,0 +1,7 @@
+Generative Language API: The Gemini API allows developers to build generative AI
+applications using Gemini models. Gemini is our most capable model, built from
+the ground up to be multimodal. It can generalize and seamlessly understand,
+operate across, and combine different types of information including language,
+images, audio, video, and code. You can use the Gemini API for use cases like
+reasoning across text and images, content generation, dialogue agents,
+summarization and classification systems, and more.