From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GB2KMThM4l6fNgAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 15:22:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MMJxLThM4l7vbQAA1q6Kng (envelope-from ) for ; Thu, 11 Jun 2020 15:22:32 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7791D940538 for ; Thu, 11 Jun 2020 15:22:32 +0000 (UTC) Received: from localhost ([::1]:37828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjP2F-000610-4U for larch@yhetil.org; Thu, 11 Jun 2020 11:22:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOvB-0007FB-Hd for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjOvB-0004Ek-1A for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjOvA-0005MK-Sz for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCH 26/26] gnu: Add python-sanic. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 15:15:12 +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 Cc: Giacomo Leidi Received: via spool by 41807-submit@debbugs.gnu.org id=B41807.159188848220362 (code B ref 41807); Thu, 11 Jun 2020 15:15:12 +0000 Received: (at 41807) by debbugs.gnu.org; 11 Jun 2020 15:14:42 +0000 Received: from localhost ([127.0.0.1]:37760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOug-0005IH-1s for submit@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:42 -0400 Received: from latitanza.investici.org ([82.94.249.234]:64491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuM-0005D4-13 for 41807@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:22 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id C922912018B; Thu, 11 Jun 2020 15:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1591888461; bh=fT0ghEQSw9g+F0LMeoedkMlXC6mPCaDSTZzOVTsCb7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LbVX3T4ExwT8DPf6jTU31nT8qUcN+tgfUEvodfFwoscpjW5pccg4+PPxBOkEa5GfN 6fCTkvmKk8AYm4WIumzGeEPVqEfVK82gtTG85UcmCst1ZfQ6XkpYfMAHtJl4B+76GH kR2C8q27CNXUP2aTGxmtt0dtVMuM6N9EfZn6z1P0= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 89B0312015C; Thu, 11 Jun 2020 15:14:21 +0000 (UTC) From: Giacomo Leidi Date: Thu, 11 Jun 2020 17:13:57 +0200 Message-Id: <20200611151357.18843-26-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200611151357.18843-1-goodoldpaul@autistici.org> References: <20200611151357.18843-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=autistici.org header.s=stigmate header.b=LbVX3T4E; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.99 X-TUID: +CRE069UiY82 * 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 daaf4a8934..b7abe9fc17 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4234,3 +4234,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