diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-06-11 18:58:16 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-07-28 12:13:24 +0200 |
commit | 85c6c7b64bae700a48dac5ae3ad23cffdd3757b5 (patch) | |
tree | 020ebe4ea363ca00bc170825b8275c2b9edc9d43 /pkgs/development/python-modules/flask-limiter | |
parent | d8f45eef765d42684fb8f2b5b5f5033d31bac43e (diff) |
python311Packages.flask-limiter: disable on unsupported Python releases
- add changelog to emta - clean-up postPatch section
Diffstat (limited to 'pkgs/development/python-modules/flask-limiter')
-rw-r--r-- | pkgs/development/python-modules/flask-limiter/default.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/flask-limiter/default.nix b/pkgs/development/python-modules/flask-limiter/default.nix index f30598797a75e..b83b41578db5b 100644 --- a/pkgs/development/python-modules/flask-limiter/default.nix +++ b/pkgs/development/python-modules/flask-limiter/default.nix @@ -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; [ ]; }; |