From: paul <goodoldpaul@autistici.org>
To: 41807@debbugs.gnu.org
Subject: [bug#41807] [PATCHES] Add python-sanic and dependencies.
Date: Thu, 11 Jun 2020 22:41:12 +0200 [thread overview]
Message-ID: <5fdfba70-2823-bbd3-0c89-6263abbb428c@autistici.org> (raw)
In-Reply-To: <ac52c0b0-4158-8edb-fe1e-846138a78a08@autistici.org>
[-- Attachment #1: Type: text/plain, Size: 85 bytes --]
Hi I'm sending an updated version of patch 24 and patch 26.
Thanks again,
Giacomo
[-- Attachment #2: 0024-gnu-Add-python-httpx.patch --]
[-- Type: text/x-patch, Size: 1861 bytes --]
From 121ffb5b3f3c5e19d4a84270edcff6c89f788d3e Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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
[-- Attachment #3: 0026-gnu-Add-python-sanic.patch --]
[-- Type: text/x-patch, Size: 2382 bytes --]
From b3a25e0bde18087fcbf769cdb5e604996b479829 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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
next prev parent reply other threads:[~2020-06-11 20:56 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 14:59 [bug#41807] [PATCHES] Add python-sanic and dependencies paul
2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 02/26] gnu: Add python-immutables Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 03/26] gnu: Add python-contextvars Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 04/26] gnu: Add python-curio Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 05/26] gnu: Add python-sniffio Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 06/26] gnu: Add python-trustme Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 07/26] gnu: Add python-trio Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 08/26] gnu: Add python-httptools Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 10/26] gnu: Add python-h11 Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 11/26] gnu: Add python-hpack Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 13/26] gnu: Add python-h2 Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2 Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 22/26] gnu: Add python-libcst Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 24/26] gnu: Add python-httpx Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 25/26] gnu: Add python-uvloop Giacomo Leidi
2020-06-11 15:13 ` [bug#41807] [PATCH 26/26] gnu: Add python-sanic Giacomo Leidi
2020-06-11 20:41 ` paul [this message]
2020-06-17 6:49 ` [bug#41807] [PATCHES] Add python-sanic and dependencies Lars-Dominik Braun
2020-06-17 13:34 ` paul
2020-10-20 10:58 ` paul
2020-11-13 8:59 ` Lars-Dominik Braun
2020-11-30 23:25 ` paul
2020-12-01 7:16 ` Lars-Dominik Braun
2020-12-15 7:04 ` bug#41807: " Leo Famulari
2020-12-15 8:56 ` [bug#41807] " Lars-Dominik Braun
2020-12-15 19:23 ` Leo Famulari
2020-12-16 7:15 ` Lars-Dominik Braun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5fdfba70-2823-bbd3-0c89-6263abbb428c@autistici.org \
--to=goodoldpaul@autistici.org \
--cc=41807@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).