unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 42719@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#42719] [PATCH 2/3] gnu: Add python-hpack.
Date: Wed,  5 Aug 2020 12:12:55 -0300	[thread overview]
Message-ID: <20200805151256.7769-2-monego@posteo.net> (raw)
In-Reply-To: <20200805151256.7769-1-monego@posteo.net>

* 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





  reply	other threads:[~2020-08-05 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-05 15:12 [bug#42717] [PATCH 1/3] gnu: Add python-hyperframe Vinicius Monego
2020-08-05 15:12 ` Vinicius Monego [this message]
2020-08-06 14:02   ` bug#42719: [PATCH 2/3] gnu: Add python-hpack 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

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=20200805151256.7769-2-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=42719@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).