aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2025-10-15 07:16:11 +0000
committerHiroki Tagato <tagattie@FreeBSD.org>2025-10-15 07:36:08 +0000
commit3ed6d8f71c7753ba14803341fd26ebf478dda610 (patch)
tree360e8fcd0aeef543a9e6168b5e1871de89a74864
parent5fc042109feab64e9f47a1b72fcce6a651bdd8e9 (diff)
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
-rw-r--r--mail/Makefile1
-rw-r--r--mail/py-resend/Makefile36
-rw-r--r--mail/py-resend/distinfo3
-rw-r--r--mail/py-resend/files/requirements.txt2
-rw-r--r--mail/py-resend/pkg-descr4
5 files changed, 46 insertions, 0 deletions
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.