python3Packages.flask-limiter: fix building with latest rich
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
asgiref,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
flask,
|
||||
hiro,
|
||||
limits,
|
||||
@@ -33,6 +34,14 @@ buildPythonPackage rec {
|
||||
hash = "sha256-3GFbLQExd4c3Cyr7UDX/zOAfedOluXMwCbBhOgoKfn0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# permit use of rich < 15 -- remove when updating past 3.12
|
||||
(fetchpatch {
|
||||
url = "https://github.com/alisaifee/flask-limiter/commit/008a5c89f249e18e5375f16d79efc3ac518e9bcc.patch";
|
||||
hash = "sha256-dvTPVnuPs7xCRfUBBA1bgeWGuevFUZ+Kgl9MBHdgfKU=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# flask-restful is unmaintained and breaks regularly, don't depend on it
|
||||
substituteInPlace tests/test_views.py \
|
||||
|
||||
Reference in New Issue
Block a user