git: 3ed6d8f71c77 - main - mail/py-resend: Add port: Resend Python SDK

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Wed, 15 Oct 2025 07:36:22 UTC
The branch main has been updated by tagattie:

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

commit 3ed6d8f71c7753ba14803341fd26ebf478dda610
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-10-15 07:16:11 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-10-15 07:36:08 +0000

    mail/py-resend: Add port: Resend Python SDK
    
    Resend is the email API for developers.
    
    The best way to reach humans instead of spam folders. Deliver
    transactional and marketing emails at scale.
    
    WWW: https://github.com/resend/resend-python
---
 mail/Makefile                         |  1 +
 mail/py-resend/Makefile               | 36 +++++++++++++++++++++++++++++++++++
 mail/py-resend/distinfo               |  3 +++
 mail/py-resend/files/requirements.txt |  2 ++
 mail/py-resend/pkg-descr              |  4 ++++
 5 files changed, 46 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index e69be4f724ae..6805cdb4c98b 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -544,6 +544,7 @@
     SUBDIR += py-pyspf
     SUBDIR += py-python-slimta
     SUBDIR += py-pyzmail
+    SUBDIR += py-resend
     SUBDIR += py-rfc6555
     SUBDIR += py-spf-engine
     SUBDIR += py-tlsrpt-reporter
diff --git a/mail/py-resend/Makefile b/mail/py-resend/Makefile
new file mode 100644
index 000000000000..e317f7979aaa
--- /dev/null
+++ b/mail/py-resend/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	resend
+DISTVERSION=	2.17.0
+CATEGORIES=	mail python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	Resend Python SDK
+WWW=		https://github.com/resend/resend-python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BR_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.4.0:devel/py-typing-extensions@${PY_FLAVOR}
+BUILD_DEPENDS=	${BR_DEPENDS}
+RUN_DEPENDS=	${BR_DEPENDS}
+
+USES=		python
+
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-extract:
+	@${CP} ${FILESDIR}/requirements.txt ${WRKSRC}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/mail/py-resend/distinfo b/mail/py-resend/distinfo
new file mode 100644
index 000000000000..956e27ba3020
--- /dev/null
+++ b/mail/py-resend/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760506235
+SHA256 (resend-2.17.0.tar.gz) = 90c8adbe92bfc14c9dfbe0bbe68cee14bd8813fdd568f36ae71df7a8946bbd4a
+SIZE (resend-2.17.0.tar.gz) = 16964
diff --git a/mail/py-resend/files/requirements.txt b/mail/py-resend/files/requirements.txt
new file mode 100644
index 000000000000..935af601a213
--- /dev/null
+++ b/mail/py-resend/files/requirements.txt
@@ -0,0 +1,2 @@
+requests>=2.31.0
+typing_extensions>=4.4.0
diff --git a/mail/py-resend/pkg-descr b/mail/py-resend/pkg-descr
new file mode 100644
index 000000000000..f1206c34f721
--- /dev/null
+++ b/mail/py-resend/pkg-descr
@@ -0,0 +1,4 @@
+Resend is the email API for developers.
+
+The best way to reach humans instead of spam folders. Deliver
+transactional and marketing emails at scale.