From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iGMsLm+a4l5WOgAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 20:56:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KBEBKm+a4l6WXgAAB5/wlQ (envelope-from ) for ; Thu, 11 Jun 2020 20:56:15 +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 1B1FF9403E9 for ; Thu, 11 Jun 2020 20:56:15 +0000 (UTC) Received: from localhost ([::1]:59512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjUFB-00077w-1Q for larch@yhetil.org; Thu, 11 Jun 2020 16:56:13 -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-Type: multipart/mixed; boundary="------------EA1F00FF0048569F118A8AD3" Content-Language: en-US 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=C1BvO+4A; 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: -0.01 X-TUID: 6fX1WaLWDL38 This is a multi-part message in MIME format. --------------EA1F00FF0048569F118A8AD3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi I'm sending an updated version of patch 24 and patch 26. Thanks again, Giacomo --------------EA1F00FF0048569F118A8AD3 Content-Type: text/x-patch; charset=UTF-8; name="0024-gnu-Add-python-httpx.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0024-gnu-Add-python-httpx.patch" >From 121ffb5b3f3c5e19d4a84270edcff6c89f788d3e Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Wed, 10 Jun 2020 18:08:03 +0200 Subject: [PATCH 24/26] gnu: Add python-httpx. * gnu/packages/python-web.scm (python-httpx): New variable. --- gnu/packages/python-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d40dad2e00..3dd14e41ec 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4206,3 +4206,34 @@ codebase that is capable of decoding a binary stream into HTTP/2 frames.") "@code{python-hstspreload} contains Chromium HSTS Preload list as a Python package.") (license license:bsd-3))) + +(define-public python-httpx + (package + (name "python-httpx") + (version "0.13.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httpx" version)) + (sha256 + (base32 + "1bpg46mx8n74hxmw2pvgr5pc590hxdsh4wrs4j5bm00bx49vshin")))) + (build-system python-build-system) + (arguments + ;; FIXME: Tests depend on httpcore. + `(#:tests? #f)) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-chardet" ,python-chardet) + ("python-h11" ,python-h11) + ("python-h2" ,python-h2) + ("python-hstspreload" ,python-hstspreload) + ("python-idna" ,python-idna) + ("python-rfc3986" ,python-rfc3986) + ("python-sniffio" ,python-sniffio) + ("python-urllib3" ,python-urllib3))) + (home-page "https://github.com/encode/httpx") + (synopsis "HTTP client for Python") + (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))) -- 2.26.2 --------------EA1F00FF0048569F118A8AD3 Content-Type: text/x-patch; charset=UTF-8; name="0026-gnu-Add-python-sanic.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0026-gnu-Add-python-sanic.patch" >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 --------------EA1F00FF0048569F118A8AD3--