[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/06: gnu: python-flask-restful: Rewrite import.
From: |
guix-commits |
Subject: |
05/06: gnu: python-flask-restful: Rewrite import. |
Date: |
Thu, 16 Dec 2021 04:11:20 -0500 (EST) |
lbraun pushed a commit to branch master
in repository guix.
commit 974264af3782be047b4fb1765fbb67964d67a643
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Dec 16 09:04:57 2021 +0100
gnu: python-flask-restful: Rewrite import.
It seems a function inside python-flask moved to a different module.
* gnu/packages/python-web.scm (python-flask-restful)[arguments]: Add
phase rewriting imports from flask.helpers to flask.scaffold.
---
gnu/packages/python-web.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c04f2fb..61a34bf 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3335,6 +3335,13 @@ pretty printer and a tree visitor.")
(base32
"05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-imports
+ (lambda _
+ (substitute* "flask_restful/__init__.py"
+ (("flask\\.helpers") "flask.scaffold")))))))
(propagated-inputs
(list python-aniso8601 python-flask python-pycrypto python-pytz))
(native-inputs
- branch master updated (6335c94 -> 08218fd), guix-commits, 2021/12/16
- 03/06: gnu: Add todoman., guix-commits, 2021/12/16
- 02/06: gnu: Replace JUPYTER_CONFIG_DIR with JUPYTER_CONFIG_PATH., guix-commits, 2021/12/16
- 04/06: gnu: Add js-mathjax-3., guix-commits, 2021/12/16
- 06/06: gnu: python-pyflow: Rename to python2-pyflow., guix-commits, 2021/12/16
- 01/06: gnu: python-sanic: Update to 20.12.4., guix-commits, 2021/12/16
- 05/06: gnu: python-flask-restful: Rewrite import.,
guix-commits <=