From patchwork Thu Jun 11 20:41:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 22671 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 630E527BBE3; Thu, 11 Jun 2020 21:56:09 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,URIBL_BLOCKED autolearn=no 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 DDB2D27BBE1 for ; Thu, 11 Jun 2020 21:56:08 +0100 (BST) Received: from localhost ([::1]:59512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjUF6-00077w-Ar for patchwork@mira.cbaines.net; Thu, 11 Jun 2020 16:56:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjU1T-0000R1-9G for guix-patches@gnu.org; Thu, 11 Jun 2020 16:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjU1S-0004iM-Q0 for guix-patches@gnu.org; Thu, 11 Jun 2020 16:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjU1S-0007VJ-Nb for guix-patches@gnu.org; Thu, 11 Jun 2020 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCHES] Add python-sanic and dependencies. References: In-Reply-To: Resent-From: paul Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41807@debbugs.gnu.org Received: via spool by 41807-submit@debbugs.gnu.org id=B41807.159190807728778 (code B ref 41807); Thu, 11 Jun 2020 20:42:02 +0000 Received: (at 41807) by debbugs.gnu.org; 11 Jun 2020 20:41:17 +0000 Received: from localhost ([127.0.0.1]:38209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjU0j-0007U5-7M for submit@debbugs.gnu.org; Thu, 11 Jun 2020 16:41:17 -0400 Received: from confino.investici.org ([212.103.72.250]:25459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjU0g-0007Tw-OU for 41807@debbugs.gnu.org; Thu, 11 Jun 2020 16:41:15 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 08E2221215 for <41807@debbugs.gnu.org>; Thu, 11 Jun 2020 20:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1591908073; bh=i1ImUH+EPpmoPzfdE5TfgmqIe5TQlGu1AtXtoojCRNQ=; h=To:From:Subject:Date:From; b=C1BvO+4Aa9nAJt/UKnhd8rWE6Hq4h7JqcDeeXlh85KZrcga1F7mWQsOO/EkJxsnC/ bJz5Vu46GhlL1zCPOetKUDUI+0kp4JmVtouy5UO/KWrSg/jbH8ZcPEE5mQ89tJChBB w4vy7+7Q95mCxOzF1inuicq4vVzeCTjlYsX1Aaas= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id E88C6211A5 for <41807@debbugs.gnu.org>; Thu, 11 Jun 2020 20:41:12 +0000 (UTC) From: paul Message-ID: <5fdfba70-2823-bbd3-0c89-6263abbb428c@autistici.org> Date: Thu, 11 Jun 2020 22:41:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.9.0 MIME-Version: 1.0 Content-Language: en-US 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 Hi I'm sending an updated version of patch 24 and patch 26. Thanks again, Giacomo From b3a25e0bde18087fcbf769cdb5e604996b479829 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Thu, 11 Jun 2020 16:43:26 +0200 Subject: [PATCH 26/26] gnu: Add python-sanic. * gnu/packages/python-web.scm (python-sanic): New variable, (python-httpx-0.11): New variable. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3dd14e41ec..22b1b1299e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4237,3 +4237,52 @@ as a Python package.") (description "HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.") (license license:bsd-3))) + +;; This is only for python-sanic +(define-public python-httpx-0.11 + (package (inherit python-httpx) + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httpx" version)) + (sha256 + (base32 + "1xrwlgnzm9x0d92s22ypli4cybwwv8idpp8m7naigmzfdrrgnavx")))) + (arguments + ;; FIXME: Tests can't import rfc3986. + `(#:tests? #f)))) + +(define-public python-sanic + (package + (name "python-sanic") + (version "20.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sanic" version)) + (sha256 + (base32 + "1zssckzjsa1qi2bxirn0dksszmfhsbrkakvfx3r080sdcph8y1xl")))) + (build-system python-build-system) + (arguments + ;; FIXME: Tests depend on httpcore. + `(#:tests? #f)) + (propagated-inputs + `(("python-aiofiles" ,python-aiofiles) + ("python-httptools" ,python-httptools) + ("python-httpx" ,python-httpx-0.11) + ("python-multidict" ,python-multidict) + ("python-ujson" ,python-ujson) + ("python-uvloop" ,python-uvloop) + ("python-websockets" ,python-websockets))) + (home-page + "https://github.com/huge-success/sanic/") + (synopsis + "Async Python 3.6+ web server/framework") + (description + "Sanic is a Python 3.6+ web server and web framework +that's written to go fast. It allows the usage of the +@code{async/await} syntax added in Python 3.5, which makes +your code non-blocking and speedy.") + (license license:expat))) -- 2.26.2