[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
150/232: gnu: python-falcon: Update to 3.1.0.
From: |
guix-commits |
Subject: |
150/232: gnu: python-falcon: Update to 3.1.0. |
Date: |
Sun, 24 Apr 2022 23:59:04 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit f7c004a6a7b0a4cd659a63ee7059fa60c8846f3a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 18 09:48:12 2022 -0400
gnu: python-falcon: Update to 3.1.0.
* gnu/packages/python-web.scm (python-falcon): Update to 3.1.0.
[source]: Use git. Adjust snippet.
[phases]{check}: Set HOME and invoke pytests with "-vv".
[native-inputs]: Add python-aiofiles, python-cbor2, python-fakeredis,
python-httpx, python-pecan, python-pillow, python-pytest-asyncio and
python-websockets.
[synopsis, description]: Fix indentation.
---
gnu/packages/python-web.scm | 50 +++++++++++++++++++++++++++------------------
1 file changed, 30 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a7d61f344c..38567eaab8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -668,14 +668,16 @@ for resource properties and best practices.")
(define-public python-falcon
(package
(name "python-falcon")
- (version "2.0.0")
+ (version "3.1.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "falcon" version))
- (sha256
- (base32
- "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
+ ;; Use git, as there are some test files missing from the PyPI release,
+ ;; such as 'examples' directory.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/falconry/falcon")
+ (commit version)))
+ (file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet
'(begin
@@ -683,11 +685,13 @@ for resource properties and best practices.")
(substitute* "setup.py"
((".*falcon\\.vendor\\.mimeparse.*") ""))
(substitute* '("falcon/media/handlers.py"
- "falcon/request.py")
- (("from falcon\\.vendor ") ""))
- (substitute* "falcon.egg-info/SOURCES.txt"
- (("falcon/vendor.*") ""))
- #t))))
+ "falcon/request.py"
+ "tests/test_deps.py")
+ (("from falcon\\.vendor ") "")
+ (("mimeparse.mimeparse") "mimeparse"))))
+ (sha256
+ (base32
+ "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -697,27 +701,33 @@ for resource properties and best practices.")
;; Skip orjson, which requires rust to build.
(substitute* "tests/test_media_handlers.py"
(("== 'CPython") "!= 'CPython"))
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "--ignore" "falcon"))))))
+ (setenv "HOME" "/tmp")
+ (invoke "pytest" "-vv" "tests"))))))
(propagated-inputs
(list python-mimeparse))
(native-inputs
- (list python-cython ;for faster binaries
+ (list python-aiofiles
+ python-cbor2
+ python-cython ;for faster binaries
+ python-fakeredis
+ python-httpx
python-mujson
python-msgpack
+ python-pecan
+ python-pillow
python-pytest
+ python-pytest-asyncio
python-pytest-runner
python-pyyaml
python-rapidjson
python-requests
python-testtools
- python-ujson))
+ python-ujson
+ python-websockets))
(home-page "https://falconframework.org")
- (synopsis
- "Web framework for building APIs and application backends")
- (description
- "Falcon is a web API framework for building microservices, application
-backends and higher-level frameworks. Among its features are:
+ (synopsis "Web framework for building APIs and application backends")
+ (description "Falcon is a web API framework for building microservices,
+application backends and higher-level frameworks. Among its features are:
@itemize
@item Optimized and extensible code base
@item Routing via URI templates and REST-inspired resource
- 222/232: gnu: Add python-beartype., (continued)
- 222/232: gnu: Add python-beartype., guix-commits, 2022/04/24
- 230/232: gnu: Add python-mpl-sphinx-theme., guix-commits, 2022/04/24
- 76/232: gnu: Add java-antlr4-runtime-cpp., guix-commits, 2022/04/24
- 86/232: gnu: Add font-amiri., guix-commits, 2022/04/24
- 113/232: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/24
- 118/232: gnu: Add python-nbdime., guix-commits, 2022/04/24
- 134/232: gnu: Add python-strict-rfc3339., guix-commits, 2022/04/24
- 136/232: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/24
- 146/232: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/04/24
- 141/232: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/24
- 150/232: gnu: python-falcon: Update to 3.1.0.,
guix-commits <=
- 166/232: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/04/24
- 144/232: gnu: Add python-socksio., guix-commits, 2022/04/24
- 148/232: gnu: Add python-aioredis., guix-commits, 2022/04/24
- 154/232: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/24
- 165/232: gnu: python-sparqlwrapper: Update to 2.0.0., guix-commits, 2022/04/24
- 169/232: gnu: xeus: Update to 2.4.1., guix-commits, 2022/04/24
- 175/232: gnu: python-parse-type: Update to 0.6.0, fixing build., guix-commits, 2022/04/24
- 183/232: gnu: Add python-toolrack., guix-commits, 2022/04/24
- 184/232: gnu: sshoot: Update to 1.5.1., guix-commits, 2022/04/24
- 186/232: gnu: Add python-mergedeep., guix-commits, 2022/04/24