mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
gnu: python-sanic: Update to 23.12.1.
* gnu/packages/python-web.scm (python-sanic): Update to 23.12.1. [build-system]: Use pyproject-build-system. [arguments]: Use #:test-flags. [propagated-inputs]: Add python-aioquic, python-html5tagger, python-tracerite, and python-typing-extensions. [native-inputs]: Remove gunicorn, python-isort, python-pytest-sugar, and python-pytest-asyncio; add python-coverage, python-cryptography, python-docutils, python-mypy, python-pygments, python-slotscheck, python-towncrier, python-tox, and python-types-ujson. Change-Id: I1bff804a6c2c038e0aacae821816f2a706029d37
This commit is contained in:
parent
d9aba13841
commit
40f5a3ce43
1 changed files with 51 additions and 35 deletions
|
@ -7155,24 +7155,19 @@ (define-public python-sanic-testing
|
||||||
(define-public python-sanic
|
(define-public python-sanic
|
||||||
(package
|
(package
|
||||||
(name "python-sanic")
|
(name "python-sanic")
|
||||||
;; We provide the latest LTS version of python-sanic.
|
(version "23.12.1")
|
||||||
(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
|
||||||
"0b8mcd1q9qkwcv2qz8nlyaacs0bp7a1l31sdq2m8hhkxykzfq5bg"))))
|
"115vnir4qijv89139g5h0i4l0n4w3bgh1ickgnk8xidxsa0wla15"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
'(list "-k"
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-vv" "./tests" "-k"
|
|
||||||
(string-append
|
(string-append
|
||||||
;; PyPi sources lack examples module.
|
;; PyPi sources lack examples module.
|
||||||
"not test_gunicorn_"
|
"not test_gunicorn_"
|
||||||
|
@ -7187,37 +7182,58 @@ (define-public python-sanic
|
||||||
;; Unclear why they fail since core-updates merge.
|
;; Unclear why they fail since core-updates merge.
|
||||||
" and not test_missing_sni"
|
" and not test_missing_sni"
|
||||||
" and not test_no_matching_cert"
|
" and not test_no_matching_cert"
|
||||||
" and not test_wildcards"))))))))
|
" and not test_wildcards"
|
||||||
|
;; These tests fail because subprotocols appear to be
|
||||||
|
;; parameterized as None
|
||||||
|
" and not test_websocket_route_with_subprotocols"
|
||||||
|
;; AF_UNIX path too long
|
||||||
|
" and not test_setup_and_teardown_unix"
|
||||||
|
" and not test_configure_socket"
|
||||||
|
;; Freezes
|
||||||
|
" and not test_server_run_with_repl"))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(apply invoke "pytest" "-vv" "./tests"
|
||||||
|
test-flags)))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-aiofiles
|
(list python-aiofiles
|
||||||
|
python-aioquic
|
||||||
|
python-html5tagger
|
||||||
python-httptools
|
python-httptools
|
||||||
python-multidict
|
python-multidict
|
||||||
python-sanic-routing
|
python-sanic-routing
|
||||||
|
python-tracerite
|
||||||
|
python-typing-extensions
|
||||||
python-ujson
|
python-ujson
|
||||||
python-uvloop
|
python-uvloop
|
||||||
python-websockets))
|
python-websockets))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gunicorn
|
(list python-bandit
|
||||||
python-bandit
|
|
||||||
python-beautifulsoup4
|
python-beautifulsoup4
|
||||||
python-chardet
|
python-chardet
|
||||||
python-isort
|
python-coverage
|
||||||
|
python-cryptography
|
||||||
|
python-docutils
|
||||||
|
python-mypy
|
||||||
|
python-pygments
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-benchmark
|
python-pytest-benchmark
|
||||||
python-pytest-sanic
|
python-pytest-sanic
|
||||||
python-pytest-sugar
|
|
||||||
python-pytest-asyncio
|
|
||||||
python-sanic-testing
|
python-sanic-testing
|
||||||
|
python-slotscheck
|
||||||
|
python-towncrier
|
||||||
|
python-tox
|
||||||
|
python-types-ujson
|
||||||
python-uvicorn))
|
python-uvicorn))
|
||||||
(home-page
|
(home-page "https://github.com/sanic-org/sanic/")
|
||||||
"https://github.com/sanic-org/sanic/")
|
(synopsis "Async Python web server/framework")
|
||||||
(synopsis
|
|
||||||
"Async Python web server/framework")
|
|
||||||
(description
|
(description
|
||||||
"Sanic is a Python web server and web framework
|
"Sanic is a Python web server and web framework that's written to go
|
||||||
that's written to go fast. It allows the usage of the
|
fast. It allows the usage of the @code{async/await} syntax added in Python
|
||||||
@code{async/await} syntax added in Python 3.5, which makes
|
3.5, which makes your code non-blocking and speedy.")
|
||||||
your code non-blocking and speedy.")
|
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-sanic-bootstrap
|
(define-public python-sanic-bootstrap
|
||||||
|
|
Loading…
Reference in a new issue