pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-flask-sendmail



Module Name:    pkgsrc
Committed By:   khorben
Date:           Thu May 27 22:25:05 UTC 2021

Added Files:
        pkgsrc/www/py-flask-sendmail: DESCR Makefile PLIST distinfo
        pkgsrc/www/py-flask-sendmail/patches:
            patch-flask__sendmail_connection.py

Log Message:
py-flask-sendmail: import version 0.1

The Flask-Sendmail extension provides a simple interface to your system's
sendmail client from within your Flask application and gives you ability to send
messages from your views and scripts.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/py-flask-sendmail/DESCR \
    pkgsrc/www/py-flask-sendmail/Makefile pkgsrc/www/py-flask-sendmail/PLIST \
    pkgsrc/www/py-flask-sendmail/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/www/py-flask-sendmail/DESCR
diff -u /dev/null pkgsrc/www/py-flask-sendmail/DESCR:1.1
--- /dev/null   Thu May 27 22:25:05 2021
+++ pkgsrc/www/py-flask-sendmail/DESCR  Thu May 27 22:25:05 2021
@@ -0,0 +1,3 @@
+The Flask-Sendmail extension provides a simple interface to your system's
+sendmail client from within your Flask application and gives you ability to send
+messages from your views and scripts.
Index: pkgsrc/www/py-flask-sendmail/Makefile
diff -u /dev/null pkgsrc/www/py-flask-sendmail/Makefile:1.1
--- /dev/null   Thu May 27 22:25:05 2021
+++ pkgsrc/www/py-flask-sendmail/Makefile       Thu May 27 22:25:05 2021
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+DISTNAME=      Flask-Sendmail-0.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
+CATEGORIES=    www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=F/Flask-Sendmail/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ajford/flask-sendmail
+COMMENT=       Flask extension to send mails with sendmail
+LICENSE=       modified-bsd
+
+USE_LANGUAGES= # empty
+
+DEPENDS+=      ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-flask-sendmail/PLIST
diff -u /dev/null pkgsrc/www/py-flask-sendmail/PLIST:1.1
--- /dev/null   Thu May 27 22:25:05 2021
+++ pkgsrc/www/py-flask-sendmail/PLIST  Thu May 27 22:25:05 2021
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/27 22:25:05 khorben Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/flask_sendmail/__init__.py
+${PYSITELIB}/flask_sendmail/__init__.pyc
+${PYSITELIB}/flask_sendmail/__init__.pyo
+${PYSITELIB}/flask_sendmail/connection.py
+${PYSITELIB}/flask_sendmail/connection.pyc
+${PYSITELIB}/flask_sendmail/connection.pyo
+${PYSITELIB}/flask_sendmail/mail.py
+${PYSITELIB}/flask_sendmail/mail.pyc
+${PYSITELIB}/flask_sendmail/mail.pyo
+${PYSITELIB}/flask_sendmail/message.py
+${PYSITELIB}/flask_sendmail/message.pyc
+${PYSITELIB}/flask_sendmail/message.pyo
Index: pkgsrc/www/py-flask-sendmail/distinfo
diff -u /dev/null pkgsrc/www/py-flask-sendmail/distinfo:1.1
--- /dev/null   Thu May 27 22:25:05 2021
+++ pkgsrc/www/py-flask-sendmail/distinfo       Thu May 27 22:25:05 2021
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+SHA1 (Flask-Sendmail-0.1.tar.gz) = 6ac44c275a3d9dce4ed3d028335537ed19e67cef
+RMD160 (Flask-Sendmail-0.1.tar.gz) = 7b79b89250b9376ff5f9f2f1d1b3b0508c861a6a
+SHA512 (Flask-Sendmail-0.1.tar.gz) = c341d841a5ea2ff06d60361bf323fd3d9bce1b332143da415534e9176d797fbd5bd59ea9b7563a81e35dbe93dcbb6d957f02df61bd191b385eb834638133aecd
+Size (Flask-Sendmail-0.1.tar.gz) = 3410 bytes
+SHA1 (patch-flask__sendmail_connection.py) = 8ec1db04739ffe9d41006c68b3670f97a39ae8cc

Index: pkgsrc/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
diff -u /dev/null pkgsrc/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py:1.1
--- /dev/null   Thu May 27 22:25:05 2021
+++ pkgsrc/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py    Thu May 27 22:25:05 2021
@@ -0,0 +1,15 @@
+$NetBSD: patch-flask__sendmail_connection.py,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+Fix type error when sending messages
+
+--- flask_sendmail/connection.py.orig  2012-04-23 02:11:53.000000000 +0000
++++ flask_sendmail/connection.py
+@@ -20,7 +20,7 @@ class Connection(object):
+     def send(self, message):
+         sm = Popen([self.mail.mailer, self.mail.mailer_flags], stdin=PIPE,
+                    stdout=PIPE, stderr=STDOUT)
+-        sm.stdin.write(message.dump())
++        sm.stdin.write(message.dump().encode())
+         sm.communicate()
+ 
+         return sm.returncode



Home | Main Index | Thread Index | Old Index