gnu: python-sanic: Update to 21.12.1.
* gnu/packages/python-web.scm (python-sanic): Update to 21.12.1. [arguments]<#:phases>: Remove 'use-recent-pytest, update skipped tests in 'check. [propagated-inputs]: Remove python-httpx, replace python-multidict with python-multidict-5, add python-sanic-routing. [native-inputs]: Add python-bandit, python-chardet, python-isort and python-sanic-testing. Remove python-hstspreload, python-httpcore, python-pytest-cov and python-urllib3. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
7acd012230
commit
93baba6475
@ -86,6 +86,7 @@
|
|||||||
#:use-module (gnu packages libevent)
|
#:use-module (gnu packages libevent)
|
||||||
#:use-module (gnu packages libffi)
|
#:use-module (gnu packages libffi)
|
||||||
#:use-module (gnu packages node)
|
#:use-module (gnu packages node)
|
||||||
|
#:use-module (gnu packages openstack)
|
||||||
#:use-module (gnu packages pcre)
|
#:use-module (gnu packages pcre)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
@ -6389,53 +6390,55 @@ applications.")
|
|||||||
(define-public python-sanic
|
(define-public python-sanic
|
||||||
(package
|
(package
|
||||||
(name "python-sanic")
|
(name "python-sanic")
|
||||||
(version "20.12.4")
|
;; We provide the latest LTS version of python-sanic.
|
||||||
|
(version "21.12.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sanic" version))
|
(uri (pypi-uri "sanic" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0axfc151s7nrykzypzciyvkxxrs5ayx8kxv4r620hjb9w3jjhfnp"))))
|
"0b8mcd1q9qkwcv2qz8nlyaacs0bp7a1l31sdq2m8hhkxykzfq5bg"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'use-recent-pytest
|
#~(modify-phases %standard-phases
|
||||||
;; Allow using recent dependencies.
|
(replace 'check
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(substitute* "setup.py"
|
(when tests?
|
||||||
(("pytest==5.2.1") "pytest")
|
(invoke "pytest" "-vv" "./tests" "-k"
|
||||||
(("multidict>=5.0,<6.0") "multidict")
|
(string-append
|
||||||
(("httpx==0\\.15\\.4") "httpx"))
|
;; PyPi sources lack examples module.
|
||||||
#t))
|
"not test_gunicorn_"
|
||||||
(replace 'check
|
;; Does not expect brotli and reordered headers.
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
" and not test_raw_headers"
|
||||||
(add-installed-pythonpath inputs outputs)
|
;; These look like buggy testcases.
|
||||||
(invoke "pytest" "-vv" "./tests" "-k"
|
" and not test_zero_downtime"
|
||||||
(string-append "not test_zero_downtime "
|
" and not test_non_default_uvloop_config_raises_warning"
|
||||||
"and not test_gunicorn_worker "
|
" and not test_listeners_triggered"
|
||||||
"and not test_logo_")))))))
|
" and not test_keep_alive_connection_context"
|
||||||
|
" and not test_keep_alive_client_timeout"))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-aiofiles
|
(list python-aiofiles
|
||||||
python-httptools
|
python-httptools
|
||||||
python-httpx
|
|
||||||
python-multidict
|
python-multidict
|
||||||
|
python-sanic-routing
|
||||||
python-ujson
|
python-ujson
|
||||||
python-uvloop
|
python-uvloop
|
||||||
python-websockets))
|
python-websockets))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gunicorn
|
(list gunicorn
|
||||||
|
python-bandit
|
||||||
python-beautifulsoup4
|
python-beautifulsoup4
|
||||||
python-hstspreload
|
python-chardet
|
||||||
python-httpcore
|
python-isort
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-cov
|
|
||||||
python-pytest-benchmark
|
python-pytest-benchmark
|
||||||
python-pytest-sanic
|
python-pytest-sanic
|
||||||
python-pytest-sugar
|
python-pytest-sugar
|
||||||
python-pytest-asyncio
|
python-pytest-asyncio
|
||||||
python-urllib3
|
python-sanic-testing
|
||||||
python-uvicorn))
|
python-uvicorn))
|
||||||
(home-page
|
(home-page
|
||||||
"https://github.com/sanic-org/sanic/")
|
"https://github.com/sanic-org/sanic/")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user