From patchwork Thu Jul 9 19:19:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 23150 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8BCE827BBE3; Thu, 9 Jul 2020 17:20:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E971A27BBE1 for ; Thu, 9 Jul 2020 17:20:27 +0100 (BST) Received: from localhost ([::1]:56472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZHf-0002F1-H8 for patchwork@mira.cbaines.net; Thu, 09 Jul 2020 12:20:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZHJ-0001Yt-J0 for guix-patches@gnu.org; Thu, 09 Jul 2020 12:20:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtZHJ-0003MB-6W for guix-patches@gnu.org; Thu, 09 Jul 2020 12:20:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtZHJ-0007yC-32 for guix-patches@gnu.org; Thu, 09 Jul 2020 12:20:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42297] [PATCH 10/10] gnu: Add python-aiosmtpd. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Jul 2020 16:20:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42297 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42297@debbugs.gnu.org Cc: Alexandru-Sergiu Marton Received: via spool by 42297-submit@debbugs.gnu.org id=B42297.159431159730554 (code B ref 42297); Thu, 09 Jul 2020 16:20:05 +0000 Received: (at 42297) by debbugs.gnu.org; 9 Jul 2020 16:19:57 +0000 Received: from localhost ([127.0.0.1]:41540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtZHB-0007wf-FY for submit@debbugs.gnu.org; Thu, 09 Jul 2020 12:19:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtZH8-0007vB-6m for 42297@debbugs.gnu.org; Thu, 09 Jul 2020 12:19:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9F9E916005F for <42297@debbugs.gnu.org>; Thu, 9 Jul 2020 18:19:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1594311588; bh=DXjsyXJkOOS8wm4oDuk3vWbbeuLeYmImzKolydW2wvI=; h=From:To:Cc:Subject:Date:From; b=Fy7EXgHSgFXSq54KwehoYWd+Ts63OWO1JHJ0GLhyo7soY5nyogEMw2Ho/nCfJUk/x M1EfLKJA5rXBKZoueDxZVvR5hkgvLs/cQwT2p7LQ8OxdyQFReraEMpBdIM+w5JkS32 WiJKyINSmw5qHoWUROXgLMjDoLNMhYlubtghgVvJsEPTi0jnA5w1iB1KOgIefqxCfg l7Di9k6RQr5CQ2WkOKpYKSResWAnGgTqLeignbkimIrLWB+AqWULDEBd4AgRZdH2h/ K3IKpSEwz6ste1mB9W8lFz4ISL7Dbp/MGn7T7nDYGrQKmWwyhzQXet19VbTXqTV7KC /202f74j5baFA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B2hGD1vTnz9rxH; Thu, 9 Jul 2020 18:19:48 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Thu, 9 Jul 2020 22:19:18 +0300 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-aiosmtpd): New variable. --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d8270edca1..6371d75205 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20667,3 +20667,38 @@ curves are supported.") module's __all__ and optionally the module globals. This provides both a pure-Python implementation and an optional C implementation.") (license license:asl2.0))) + +(define-public python-aiosmtpd + (package + (name "python-aiosmtpd") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiosmtpd" version)) + (sha256 + (base32 + "1xdfk741pjmz1cm8dsi4n5vq4517i175rm94696m3f7kcgk7xsmp")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;; FIXME Tests fail due to network error (Errno 111) + (propagated-inputs + `(("python-atpublic" ,python-atpublic))) + (home-page "https://github.com/aio-libs/aiosmtpd") + (synopsis "Asyncio based SMTP server") + (description + "The Python standard library includes a basic SMTP server in the +smtpd module, based on the old asynchronous libraries asyncore and +asynchat. These modules are quite old and are definitely showing their +age. asyncore and asynchat are difficult APIs to work with, understand, +extend, and fix. + +With the introduction of the asyncio module in Python 3.4, a much better +way of doing asynchronous I/O is now available. It seems obvious that +an asyncio-based version of the SMTP and related protocols are needed for +Python 3. This project brings together several highly experienced Python +developers collaborating on this reimplementation. + +This package provides such an implementation of both the SMTP and LMTP +protocols.") + (license license:asl2.0)))