[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
101/107: gnu: python-falcon: Update to 4.0.2.
From: |
guix-commits |
Subject: |
101/107: gnu: python-falcon: Update to 4.0.2. |
Date: |
Wed, 1 Jan 2025 12:49:10 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit e718ad5f43067fce901e92f11ee0c1948aae2df6
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Dec 31 21:13:55 2024 +0100
gnu: python-falcon: Update to 4.0.2.
* gnu/packages/python-web.scm (python-falcon): Update to 4.0.2.
[source]: Remove snippet.
[arguments]: Disable slow tests; remove custom 'check phase; rename
'set-HOME
to 'pre-check.
[native-inputs]: Replace python-cython with python-cython-3; add
python-setuptools and python-wheel.
Change-Id: I10d3b412b8abc3bfb2271adba7fb1597fdb24098
---
gnu/packages/python-web.scm | 36 ++++++++++++++----------------------
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 250eee1e7d..6995c9fc15 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1430,7 +1430,7 @@ Interchange Format (SARIF)} file format.")
(define-public python-falcon
(package
(name "python-falcon")
- (version "3.1.0")
+ (version "4.0.2")
(source
(origin
;; Use git, as there are some test files missing from the PyPI release,
@@ -1440,39 +1440,29 @@ Interchange Format (SARIF)} file format.")
(url "https://github.com/falconry/falcon")
(commit version)))
(file-name (git-file-name name version))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (delete-file-recursively "falcon/vendor")
- (substitute* "setup.py"
- ((".*falcon\\.vendor\\.mimeparse.*") ""))
- (substitute* '("falcon/media/handlers.py"
- "falcon/request.py"
- "tests/test_deps.py")
- (("from falcon\\.vendor ") "")
- (("mimeparse.mimeparse") "mimeparse"))))
(sha256
(base32
- "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3"))))
+ "1zhyvfbz4c1bxd4vbsgk19dzih6kkzgin10lmsr32x3b4qgnwqxs"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- '(list "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests")
+ '(list "-k" "not slow"
+ "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests")
#:phases
'(modify-phases %standard-phases
- (add-before 'check 'set-HOME
- (lambda _ (setenv "HOME" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- (apply invoke "pytest" "-vv" test-flags)))))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "FALCON_ASGI_WRAP_NON_COROUTINES" "Y")
+ (setenv "FALCON_TESTING_SESSION" "Y")
+ (setenv "PYTHONASYNCIODEBUG" "1")
+ (setenv "HOME" "/tmp"))))))
(propagated-inputs
(list python-mimeparse))
(native-inputs
(list python-aiofiles
python-cbor2
- python-cython ;for faster binaries
+ python-cython-3 ;for faster binaries
python-fakeredis
python-httpx
python-mujson
@@ -1486,9 +1476,11 @@ Interchange Format (SARIF)} file format.")
python-pyyaml
python-rapidjson
python-requests
+ python-setuptools
python-testtools
python-ujson
- python-websockets))
+ python-websockets
+ python-wheel))
(home-page "https://falconframework.org")
(synopsis "Web framework for building APIs and application backends")
(description "Falcon is a web API framework for building microservices,
- 72/107: gnu: pyscenic: Update to 0.12.1-1.eaf23eb., (continued)
- 72/107: gnu: pyscenic: Update to 0.12.1-1.eaf23eb., guix-commits, 2025/01/01
- 74/107: gnu: python-flask-babel: Update to 4.0.0., guix-commits, 2025/01/01
- 77/107: gnu: Add python-types-simplejson., guix-commits, 2025/01/01
- 78/107: gnu: beancount: Fix build., guix-commits, 2025/01/01
- 79/107: gnu: fava: Update to 1.27., guix-commits, 2025/01/01
- 80/107: gnu: python-rdflib-6: Update to 6.3.2., guix-commits, 2025/01/01
- 83/107: gnu: python-schema-salad: Update to 8.8.20241206093842., guix-commits, 2025/01/01
- 86/107: gnu: python-rdflib-6: Disable one test., guix-commits, 2025/01/01
- 91/107: gnu: python-pybedtools: Update to 0.10.0., guix-commits, 2025/01/01
- 92/107: gnu: python-traittypes: Fix tests., guix-commits, 2025/01/01
- 101/107: gnu: python-falcon: Update to 4.0.2.,
guix-commits <=
- 105/107: gnu: python-tables: Fix reference to library., guix-commits, 2025/01/01
- 106/107: gnu: python-scikit-opt: Add missing input., guix-commits, 2025/01/01
- 104/107: gnu: python-openapi-spec-validator: Restore sanity check., guix-commits, 2025/01/01
- 107/107: gnu: python-upsetplot: Add missing inputs., guix-commits, 2025/01/01
- 23/107: gnu: Add python-devpi-common., guix-commits, 2025/01/01
- 62/107: gnu: python-dulwich: Update to 0.21.7., guix-commits, 2025/01/01
- 22/107: gnu: Add python-pypitoken., guix-commits, 2025/01/01