* [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe.
@ 2020-08-05 15:12 Vinicius Monego
2020-08-05 15:12 ` [bug#42719] [PATCH 2/3] gnu: Add python-hpack Vinicius Monego
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Vinicius Monego @ 2020-08-05 15:12 UTC (permalink / raw)
To: 42717; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (python-hyperframe): New variable.
---
gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 0bdea1b86d..a9f63bcf28 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -37,6 +37,7 @@
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
+;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -464,6 +465,34 @@ follow links and submit forms. It doesn’t do JavaScript.")
(define-public python2-mechanicalsoup
(package-with-python2 python-mechanicalsoup))
+(define-public python-hyperframe
+ (package
+ (name "python-hyperframe")
+ (version "5.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "hyperframe" version))
+ (sha256
+ (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
+ (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)))
+ (home-page "https://github.com/python-hyper/hyperframe")
+ (synopsis "HTTP/2 framing layer for Python")
+ (description
+ "This library contains the HTTP/2 framing code used in the 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-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.20.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#42719] [PATCH 2/3] gnu: Add python-hpack.
2020-08-05 15:12 [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe Vinicius Monego
@ 2020-08-05 15:12 ` Vinicius Monego
2020-08-06 14:02 ` bug#42719: " Mathieu Othacehe
2020-08-05 15:12 ` [bug#42718] [PATCH 3/3] gnu: Add python-h2 Vinicius Monego
2020-08-06 14:02 ` bug#42717: [PATCH 1/3] gnu: Add python-hyperframe Mathieu Othacehe
2 siblings, 1 reply; 6+ messages in thread
From: Vinicius Monego @ 2020-08-05 15:12 UTC (permalink / raw)
To: 42719; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (python-hpack): New variable.
---
gnu/packages/python-web.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a9f63bcf28..857a0e755c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -493,6 +493,40 @@ It provides a pure-Python codebase that is capable of decoding a binary stream
into HTTP/2 frames.")
(license license:expat)))
+(define-public python-hpack
+ (package
+ (name "python-hpack")
+ (version "3.0.0")
+ (source
+ (origin
+ ;; PyPI tarball is missing some files necessary for the tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/python-hyper/hpack")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
+ (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 will be fixed in the next version. See:
+ ;; https://github.com/python-hyper/hpack/issues/168.
+ "not test_get_by_index_out_of_range"))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://hyper.rtfd.org")
+ (synopsis "Pure-Python HPACK header compression")
+ (description
+ "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
+for use in Python programs that implement HTTP/2.")
+ (license license:expat)))
+
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.20.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#42718] [PATCH 3/3] gnu: Add python-h2.
2020-08-05 15:12 [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe Vinicius Monego
2020-08-05 15:12 ` [bug#42719] [PATCH 2/3] gnu: Add python-hpack Vinicius Monego
@ 2020-08-05 15:12 ` Vinicius Monego
2020-08-06 14:03 ` bug#42718: " Mathieu Othacehe
2020-08-06 14:02 ` bug#42717: [PATCH 1/3] gnu: Add python-hyperframe Mathieu Othacehe
2 siblings, 1 reply; 6+ messages in thread
From: Vinicius Monego @ 2020-08-05 15:12 UTC (permalink / raw)
To: 42718; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (python-h2): New variable.
---
gnu/packages/python-web.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 857a0e755c..f9c8157f0d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -527,6 +527,39 @@ into HTTP/2 frames.")
for use in Python programs that implement HTTP/2.")
(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)
+ (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-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
+ "This module contains a pure-Python implementation of a HTTP/2 protocol
+stack. It does not provide a parsing layer, a network layer, or any rules
+about concurrency. Instead, it's a purely in-memory solution, defined in
+terms of data actions and HTTP/2 frames. This is one building block of a full
+Python HTTP implementation.")
+ (license license:expat)))
+
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.20.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#42717: [PATCH 1/3] gnu: Add python-hyperframe.
2020-08-05 15:12 [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe Vinicius Monego
2020-08-05 15:12 ` [bug#42719] [PATCH 2/3] gnu: Add python-hpack Vinicius Monego
2020-08-05 15:12 ` [bug#42718] [PATCH 3/3] gnu: Add python-h2 Vinicius Monego
@ 2020-08-06 14:02 ` Mathieu Othacehe
2 siblings, 0 replies; 6+ messages in thread
From: Mathieu Othacehe @ 2020-08-06 14:02 UTC (permalink / raw)
To: Vinicius Monego; +Cc: 42717-done
> * gnu/packages/python-web.scm (python-hyperframe): New variable.
Pushed, thanks!
Mathieu
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-08-06 14:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-05 15:12 [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe Vinicius Monego
2020-08-05 15:12 ` [bug#42719] [PATCH 2/3] gnu: Add python-hpack Vinicius Monego
2020-08-06 14:02 ` bug#42719: " Mathieu Othacehe
2020-08-05 15:12 ` [bug#42718] [PATCH 3/3] gnu: Add python-h2 Vinicius Monego
2020-08-06 14:03 ` bug#42718: " Mathieu Othacehe
2020-08-06 14:02 ` bug#42717: [PATCH 1/3] gnu: Add python-hyperframe Mathieu Othacehe
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).