git: db7912e393f7 - main - misc/py-mem0ai: Add new port

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Sun, 14 Sep 2025 10:35:05 UTC
The branch main has been updated by otis:

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

commit db7912e393f7ce03e78e045d4a08b5620c04a56c
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-09-14 10:33:42 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-09-14 10:33:42 +0000

    misc/py-mem0ai: Add new port
    
    Mem0 ("mem-zero") enhances AI assistants and agents with an intelligent
    memory layer, enabling personalized AI interactions.
    
    Sponsored by:   resulta.tech
---
 misc/Makefile                             |  1 +
 misc/py-mem0ai/Makefile                   | 25 +++++++++++++++++++++++++
 misc/py-mem0ai/distinfo                   |  3 +++
 misc/py-mem0ai/files/patch-pyproject.toml | 20 ++++++++++++++++++++
 misc/py-mem0ai/pkg-descr                  |  4 ++++
 5 files changed, 53 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 7d8afdc5f1eb..fd9b72b5a124 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -488,6 +488,7 @@
     SUBDIR += py-llm-claude-3
     SUBDIR += py-log_symbols
     SUBDIR += py-mcp
+    SUBDIR += py-mem0ai
     SUBDIR += py-mffpy
     SUBDIR += py-mixpanel
     SUBDIR += py-mmcv
diff --git a/misc/py-mem0ai/Makefile b/misc/py-mem0ai/Makefile
new file mode 100644
index 000000000000..c4c0aedc6446
--- /dev/null
+++ b/misc/py-mem0ai/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	mem0ai
+PORTVERSION=	0.1.117
+CATEGORIES=	misc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	otis@FreeBSD.org
+COMMENT=	Enhances AI assistants and agents with an intelligent memory layer
+WWW=		https://github.com/mem0ai/mem0
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qdrant-client>=1.9.1:databases/py-qdrant-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openai>0:misc/py-openai@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}posthog>=3.5.0:misc/py-posthog@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}protobuf>=5.29.0:devel/py-protobuf@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlalchemy20>=2.0.31:databases/py-sqlalchemy20@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/misc/py-mem0ai/distinfo b/misc/py-mem0ai/distinfo
new file mode 100644
index 000000000000..d1a28c321982
--- /dev/null
+++ b/misc/py-mem0ai/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757749444
+SHA256 (mem0ai-0.1.117.tar.gz) = aaf27fcc86a83c5906491bb0bf0588d7fe4db96e5af94e331280b18ae1e99092
+SIZE (mem0ai-0.1.117.tar.gz) = 137816
diff --git a/misc/py-mem0ai/files/patch-pyproject.toml b/misc/py-mem0ai/files/patch-pyproject.toml
new file mode 100644
index 000000000000..ff011ad80562
--- /dev/null
+++ b/misc/py-mem0ai/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig	2025-06-09 18:34:57 UTC
++++ pyproject.toml
+@@ -9,7 +9,6 @@ authors = [
+ authors = [
+     { name = "Mem0", email = "founders@mem0.ai" }
+ ]
+-readme = "README.md"
+ requires-python = ">=3.9,<4.0"
+ dependencies = [
+     "qdrant-client>=1.9.1",
+@@ -49,9 +48,6 @@ only-include = ["mem0"]
+ [tool.hatch.build.targets.wheel]
+ packages = ["mem0"]
+ only-include = ["mem0"]
+-
+-[tool.hatch.build.targets.wheel.shared-data]
+-"README.md" = "README.md"
+ 
+ [tool.hatch.envs.default.scripts]
+ format = [
diff --git a/misc/py-mem0ai/pkg-descr b/misc/py-mem0ai/pkg-descr
new file mode 100644
index 000000000000..db268fee7bd3
--- /dev/null
+++ b/misc/py-mem0ai/pkg-descr
@@ -0,0 +1,4 @@
+Mem0 ("mem-zero") enhances AI assistants and agents with an intelligent memory
+layer, enabling personalized AI interactions. It remembers user preferences,
+adapts to individual needs, and continuously learns over time—ideal for
+customer support chatbots, AI assistants, and autonomous systems.