[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
242/242: gnu: python-sanic: Update to 21.12.1.
From: |
guix-commits |
Subject: |
242/242: gnu: python-sanic: Update to 21.12.1. |
Date: |
Thu, 12 May 2022 14:14:55 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 93baba64753d4f8543b38a3a6092b7a71b79b246
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Apr 27 09:51:09 2022 +0200
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>
---
gnu/packages/python-web.scm | 51 ++++++++++++++++++++++++---------------------
1 file changed, 27 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8b6d454780..7636931091 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -86,6 +86,7 @@
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages node)
+ #:use-module (gnu packages openstack)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -6389,53 +6390,55 @@ applications.")
(define-public python-sanic
(package
(name "python-sanic")
- (version "20.12.4")
+ ;; We provide the latest LTS version of python-sanic.
+ (version "21.12.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sanic" version))
(sha256
(base32
- "0axfc151s7nrykzypzciyvkxxrs5ayx8kxv4r620hjb9w3jjhfnp"))))
+ "0b8mcd1q9qkwcv2qz8nlyaacs0bp7a1l31sdq2m8hhkxykzfq5bg"))))
(build-system python-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'use-recent-pytest
- ;; Allow using recent dependencies.
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "setup.py"
- (("pytest==5.2.1") "pytest")
- (("multidict>=5.0,<6.0") "multidict")
- (("httpx==0\\.15\\.4") "httpx"))
- #t))
- (replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv" "./tests" "-k"
- (string-append "not test_zero_downtime "
- "and not test_gunicorn_worker "
- "and not test_logo_")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "./tests" "-k"
+ (string-append
+ ;; PyPi sources lack examples module.
+ "not test_gunicorn_"
+ ;; Does not expect brotli and reordered headers.
+ " and not test_raw_headers"
+ ;; These look like buggy testcases.
+ " and not test_zero_downtime"
+ " and not
test_non_default_uvloop_config_raises_warning"
+ " and not test_listeners_triggered"
+ " and not test_keep_alive_connection_context"
+ " and not test_keep_alive_client_timeout"))))))))
(propagated-inputs
(list python-aiofiles
python-httptools
- python-httpx
python-multidict
+ python-sanic-routing
python-ujson
python-uvloop
python-websockets))
(native-inputs
(list gunicorn
+ python-bandit
python-beautifulsoup4
- python-hstspreload
- python-httpcore
+ python-chardet
+ python-isort
python-pytest
- python-pytest-cov
python-pytest-benchmark
python-pytest-sanic
python-pytest-sugar
python-pytest-asyncio
- python-urllib3
+ python-sanic-testing
python-uvicorn))
(home-page
"https://github.com/sanic-org/sanic/")
- 220/242: gnu: python-sphinx-argparse: Update to 0.3.1., (continued)
- 220/242: gnu: python-sphinx-argparse: Update to 0.3.1., guix-commits, 2022/05/12
- 213/242: gnu: python-numpydoc: Update to 1.2.1., guix-commits, 2022/05/12
- 228/242: gnu: Add python-ipdb., guix-commits, 2022/05/12
- 227/242: gnu: python-numpy-documentation: Overhaul package definition., guix-commits, 2022/05/12
- 231/242: gnu: Add texlive-underscore., guix-commits, 2022/05/12
- 230/242: gnu: Add python-mpl-sphinx-theme., guix-commits, 2022/05/12
- 240/242: gnu: Add python-sanic-bootstrap., guix-commits, 2022/05/12
- 234/242: gnu: python-qtconsole: Update to 5.3.0., guix-commits, 2022/05/12
- 235/242: gnu: python-pygments: Update to 2.12.0., guix-commits, 2022/05/12
- 233/242: gnu: python-qtpy: Update to 2.0.1., guix-commits, 2022/05/12
- 242/242: gnu: python-sanic: Update to 21.12.1.,
guix-commits <=
- 207/242: gnu: python-pingouin: Update to 0.5.1., guix-commits, 2022/05/12
- 208/242: gnu: python-flask-wtf: Update to 1.0.1., guix-commits, 2022/05/12
- 206/242: gnu: Remove python2-keyring., guix-commits, 2022/05/12
- 202/242: gnu: libgrss: Use libsoup-minimal-2 to fix build., guix-commits, 2022/05/12