mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: hypercorn: Update to 0.14.3.
* gnu/packages/python-web.scm (hypercorn): Update to 0.14.3. [source]: Fetch from GitHub. [build-system]: Switch to pyproject-build-system. [arguments]: Don't override the 'check phase. [native-inputs]: Add python-poetry-core.
This commit is contained in:
parent
139c9a53cb
commit
add37404d9
1 changed files with 15 additions and 19 deletions
|
@ -37,7 +37,7 @@
|
||||||
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
|
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
|
||||||
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
|
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
|
||||||
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
||||||
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
||||||
;;; Copyright © 2020, 2022 Giacomo Leidi <goodoldpaul@autistici.org>
|
;;; Copyright © 2020, 2022 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||||
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
|
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
|
||||||
|
@ -2059,22 +2059,17 @@ (define-public python-wsproto
|
||||||
(define-public hypercorn
|
(define-public hypercorn
|
||||||
(package
|
(package
|
||||||
(name "hypercorn")
|
(name "hypercorn")
|
||||||
(version "0.11.2")
|
(version "0.14.3")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method git-fetch) ;PyPI does not have tests
|
||||||
(method url-fetch)
|
(uri (git-reference
|
||||||
(uri (pypi-uri "Hypercorn" version))
|
(url "https://github.com/pgjones/hypercorn")
|
||||||
(sha256
|
(commit version)))
|
||||||
(base32 "16kai5d12f05jr89mj611zslxqri4cd7ixcgd6yhl211qlcyg8av"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system python-build-system)
|
(sha256
|
||||||
(arguments
|
(base32
|
||||||
`(#:phases
|
"1hkph0sdr94hxmrq1grnh842snm561sw4az5q6a3ba9hqnrl890h"))))
|
||||||
(modify-phases %standard-phases
|
(build-system pyproject-build-system)
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "python" "-m" "pytest")))))))
|
|
||||||
;; Propagate because Hypercorn also exposes functionality over a module.
|
;; Propagate because Hypercorn also exposes functionality over a module.
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-h11
|
(list python-h11
|
||||||
|
@ -2086,6 +2081,7 @@ (define-public hypercorn
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-hypothesis
|
(list python-hypothesis
|
||||||
python-mock
|
python-mock
|
||||||
|
python-poetry-core
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-asyncio
|
python-pytest-asyncio
|
||||||
python-pytest-cov
|
python-pytest-cov
|
||||||
|
@ -2096,8 +2092,8 @@ (define-public hypercorn
|
||||||
(description
|
(description
|
||||||
"Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
|
"Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
|
||||||
wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
|
wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
|
||||||
WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
|
WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It
|
||||||
utilise asyncio, uvloop, or trio worker types.")
|
can utilise asyncio, uvloop, or trio worker types.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-hypercorn
|
(define-public python-hypercorn
|
||||||
|
|
Loading…
Reference in a new issue