me
/
guix
Archived
1
0
Fork 0

gnu: Add python-h11.

* gnu/packages/python-web.scm (python-h11): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
master
Vinicius Monego 2020-08-16 17:04:54 -03:00 committed by Efraim Flashner
parent aee0f559f2
commit fc9be8db2d
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 28 additions and 0 deletions

View File

@ -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")