emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42719: closed ([PATCH 2/3] gnu: Add python-hpack.)


From: GNU bug Tracking System
Subject: bug#42719: closed ([PATCH 2/3] gnu: Add python-hpack.)
Date: Thu, 06 Aug 2020 14:03:02 +0000

Your message dated Thu, 06 Aug 2020 16:02:45 +0200
with message-id <87r1sjub22.fsf@gnu.org>
and subject line Re: [bug#42719] [PATCH 2/3] gnu: Add python-hpack.
has caused the debbugs.gnu.org bug report #42719,
regarding [PATCH 2/3] gnu: Add python-hpack.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42719
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 2/3] gnu: Add python-hpack. Date: Wed, 5 Aug 2020 12:12:55 -0300
* 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#42719] [PATCH 2/3] gnu: Add python-hpack. Date: Thu, 06 Aug 2020 16:02:45 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
> * gnu/packages/python-web.scm (python-hpack): New variable.

Pushed, thanks!

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]