unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42894] [PATCH 1/4] gnu: Add python-h11.
@ 2020-08-16 20:04 Vinicius Monego
  2020-08-16 20:07 ` [bug#42894] [PATCH 2/4] gnu: Add python-wsproto Vinicius Monego
  2020-08-17  4:56 ` bug#42894: [PATCH 1/4] gnu: Add python-h11 Efraim Flashner
  0 siblings, 2 replies; 5+ messages in thread
From: Vinicius Monego @ 2020-08-16 20:04 UTC (permalink / raw)
  To: 42894; +Cc: Vinicius Monego

* gnu/packages/python-web.scm (python-h11): New variable.
---
 gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index f9c8157f0d..957c5ceeff 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -527,6 +527,34 @@ into HTTP/2 frames.")
 for use in Python programs that implement HTTP/2.")
     (license license:expat)))
 
+(define-public python-h11
+  (package
+    (name "python-h11")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "h11" version))
+       (sha256
+        (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "pytest" "-vv"))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/python-hyper/h11")
+    (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
+    (description
+     "This is a little HTTP/1.1 library written from scratch in Python, heavily
+inspired by hyper-h2.  It's a bring-your-own-I/O library; h11 contains no IO
+code whatsoever.  This means you can hook h11 up to your favorite network API,
+and that could be anything you want.")
+    (license license:expat)))
+
 (define-public python-h2
   (package
     (name "python-h2")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#42894] [PATCH 2/4] gnu: Add python-wsproto.
  2020-08-16 20:04 [bug#42894] [PATCH 1/4] gnu: Add python-h11 Vinicius Monego
@ 2020-08-16 20:07 ` Vinicius Monego
  2020-08-16 20:07   ` [bug#42894] [PATCH 3/4] gnu: Add python-priority Vinicius Monego
  2020-08-16 20:07   ` [bug#42894] [PATCH 4/4] gnu: Add python-hypercorn Vinicius Monego
  2020-08-17  4:56 ` bug#42894: [PATCH 1/4] gnu: Add python-h11 Efraim Flashner
  1 sibling, 2 replies; 5+ messages in thread
From: Vinicius Monego @ 2020-08-16 20:07 UTC (permalink / raw)
  To: 42894; +Cc: Vinicius Monego

* gnu/packages/python-web.scm (python-wsproto): 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 957c5ceeff..f05658555a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -996,6 +996,37 @@ teams extension for python-openid.")
 (define-public python2-openid-teams
   (package-with-python2 python-openid-teams))
 
+(define-public python-wsproto
+  (package
+    (name "python-wsproto")
+    (version "0.15.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "wsproto" version))
+       (sha256
+        (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv" "test"))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (propagated-inputs
+     `(("python-h11" ,python-h11)))
+    (home-page "https://github.com/python-hyper/wsproto/")
+    (synopsis "WebSockets state-machine based protocol implementation")
+    (description
+     "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
+stack.  It's written from the ground up to be embeddable in whatever program you
+choose to use, ensuring that you can communicate via WebSockets, as defined in
+RFC6455, regardless of your programming paradigm.")
+    (license license:expat)))
+
 (define-public python-tornado
   (package
     (name "python-tornado")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#42894] [PATCH 3/4] gnu: Add python-priority.
  2020-08-16 20:07 ` [bug#42894] [PATCH 2/4] gnu: Add python-wsproto Vinicius Monego
@ 2020-08-16 20:07   ` Vinicius Monego
  2020-08-16 20:07   ` [bug#42894] [PATCH 4/4] gnu: Add python-hypercorn Vinicius Monego
  1 sibling, 0 replies; 5+ messages in thread
From: Vinicius Monego @ 2020-08-16 20:07 UTC (permalink / raw)
  To: 42894; +Cc: Vinicius Monego

* gnu/packages/python-web.scm (python-priority): New variable.
---
 gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index f05658555a..d6d3b733de 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -996,6 +996,38 @@ teams extension for python-openid.")
 (define-public python2-openid-teams
   (package-with-python2 python-openid-teams))
 
+(define-public python-priority
+  (package
+    (name "python-priority")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "priority" version))
+       (sha256
+        (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv" "test" "-k"
+                     ;; This test exceeded the Hypothesis deadline.
+                     "not test_period_of_repetition"))))))
+    (native-inputs
+     `(("python-hypothesis" ,python-hypothesis)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-xdist" ,python-pytest-xdist)))
+    (home-page "http://python-hyper.org/priority/")
+    (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
+    (description
+     "Priority is a pure-Python implementation of the priority logic for HTTP/2,
+set out in RFC 7540 Section 5.3 (Stream Priority).")
+    (license license:expat)))
+
 (define-public python-wsproto
   (package
     (name "python-wsproto")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#42894] [PATCH 4/4] gnu: Add python-hypercorn.
  2020-08-16 20:07 ` [bug#42894] [PATCH 2/4] gnu: Add python-wsproto Vinicius Monego
  2020-08-16 20:07   ` [bug#42894] [PATCH 3/4] gnu: Add python-priority Vinicius Monego
@ 2020-08-16 20:07   ` Vinicius Monego
  1 sibling, 0 replies; 5+ messages in thread
From: Vinicius Monego @ 2020-08-16 20:07 UTC (permalink / raw)
  To: 42894; +Cc: Vinicius Monego

* gnu/packages/python-web.scm (python-hypercorn): New variable.
---
 gnu/packages/python-web.scm | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d6d3b733de..59b2d196a8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1059,6 +1059,49 @@ choose to use, ensuring that you can communicate via WebSockets, as defined in
 RFC6455, regardless of your programming paradigm.")
     (license license:expat)))
 
+(define-public python-hypercorn
+  (package
+    (name "python-hypercorn")
+    (version "0.10.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Hypercorn" version))
+       (sha256
+        (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv"))))))
+    (propagated-inputs
+     `(("python-h11" ,python-h11)
+       ("python-h2" ,python-h2)
+       ("python-priority" ,python-priority)
+       ("python-toml" ,python-toml)
+       ("python-typing-extensions"
+        ,python-typing-extensions)
+       ("python-wsproto" ,python-wsproto)))
+    (native-inputs
+     `(("python-hypothesis" ,python-hypothesis)
+       ("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-asyncio" ,python-pytest-asyncio)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-trio" ,python-pytest-trio)
+       ("python-trio" ,python-trio)))
+    (home-page "https://gitlab.com/pgjones/hypercorn/")
+    (synopsis "ASGI Server based on Hyper libraries")
+    (description
+     "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
+wsproto libraries and inspired by Gunicorn.  It supports HTTP/1, HTTP/2,
+WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications.  It can
+utilise asyncio, uvloop, or trio worker types.")
+    (license license:expat)))
+
 (define-public python-tornado
   (package
     (name "python-tornado")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#42894: [PATCH 1/4] gnu: Add python-h11.
  2020-08-16 20:04 [bug#42894] [PATCH 1/4] gnu: Add python-h11 Vinicius Monego
  2020-08-16 20:07 ` [bug#42894] [PATCH 2/4] gnu: Add python-wsproto Vinicius Monego
@ 2020-08-17  4:56 ` Efraim Flashner
  1 sibling, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2020-08-17  4:56 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42894-done

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Patches look good. I changed the home-page for python-priority to
https://python-hyper.org/projects/priority/en/latest/ since the original
one didn't resolve.

Patches pushed!


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-17  4:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 20:04 [bug#42894] [PATCH 1/4] gnu: Add python-h11 Vinicius Monego
2020-08-16 20:07 ` [bug#42894] [PATCH 2/4] gnu: Add python-wsproto Vinicius Monego
2020-08-16 20:07   ` [bug#42894] [PATCH 3/4] gnu: Add python-priority Vinicius Monego
2020-08-16 20:07   ` [bug#42894] [PATCH 4/4] gnu: Add python-hypercorn Vinicius Monego
2020-08-17  4:56 ` bug#42894: [PATCH 1/4] gnu: Add python-h11 Efraim Flashner

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).