Subject: [PATCH 13/26] gnu: Add python-h2.

From: Giacomo Leidi <[email-masked]>
Date: Thu, 11 Jun 2020 17:13:44 +0200

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

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index db53ec8471..d658de9aee 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4162,3 +4162,26 @@ own implementation of RFC 6214.")
 framing code used in the @code{hyper} project.  It provides a pure-Python
 codebase that is capable of decoding a binary stream into HTTP/2 frames.")
     (license license:expat)))
+
+(define-public python-h2
+  (package
+    (name "python-h2")
+    (version "3.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "h2" version))
+       (sha256
+        (base32
+         "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-hpack" ,python-hpack)
+       ("python-hyperframe" ,python-hyperframe)))
+    (home-page
+     "https://github.com/python-hyper/hyper-h2")
+    (synopsis
+     "HTTP/2 State-Machine based protocol implementation")
+    (description
+     "@code{python-h2} is a Python implementation of a HTTP/2 protocol stack.")
+    (license license:expat)))
-- 
2.26.2