python311Packages.flask-limiter: disable on unsupported Python releases
- add changelog to emta - clean-up postPatch section
This commit is contained in:
parent
d8f45eef76
commit
85c6c7b64b
|
@ -1,20 +1,19 @@
|
|||
{ lib
|
||||
, asgiref
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
, flask
|
||||
, hiro
|
||||
, limits
|
||||
, ordered-set
|
||||
, rich
|
||||
, typing-extensions
|
||||
|
||||
, asgiref
|
||||
, hiro
|
||||
, pymemcache
|
||||
, pymongo
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, redis
|
||||
, pymongo
|
||||
, rich
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -22,6 +21,8 @@ buildPythonPackage rec {
|
|||
version = "3.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alisaifee";
|
||||
repo = "flask-limiter";
|
||||
|
@ -30,9 +31,6 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements/main.txt \
|
||||
--replace "rich>=12,<13" "rich"
|
||||
|
||||
sed -i "/--cov/d" pytest.ini
|
||||
|
||||
# flask-restful is unmaintained and breaks regularly, don't depend on it
|
||||
|
@ -82,11 +80,14 @@ buildPythonPackage rec {
|
|||
"tests/test_storage.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "flask_limiter" ];
|
||||
pythonImportsCheck = [
|
||||
"flask_limiter"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rate limiting for flask applications";
|
||||
homepage = "https://flask-limiter.readthedocs.org/";
|
||||
changelog = "https://github.com/alisaifee/flask-limiter/blob/${version}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user