File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
pkgs/development/python-modules/flask-limiter Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 33 asgiref ,
44 buildPythonPackage ,
55 fetchFromGitHub ,
6- fetchpatch ,
76 flask ,
7+ hatchling ,
8+ hatch-vcs ,
89 hiro ,
910 limits ,
1011 ordered-set ,
1112 pymemcache ,
1213 pymongo ,
14+ pytest-check ,
1315 pytest-cov-stub ,
1416 pytest-mock ,
1517 pytestCheckHook ,
1618 redis ,
1719 rich ,
18- setuptools ,
19- typing-extensions ,
2020} :
2121
2222buildPythonPackage rec {
@@ -31,45 +31,42 @@ buildPythonPackage rec {
3131 hash = "sha256-lrq4WCc2gxm039nXW6tiDt7laJFEICO0x9jw71UUwaI=" ;
3232 } ;
3333
34- patches = [
35- # permit use of rich < 15 -- remove when updating past 3.12
36- ( fetchpatch {
37- url = "https://github.com/alisaifee/flask-limiter/commit/008a5c89f249e18e5375f16d79efc3ac518e9bcc.patch" ;
38- hash = "sha256-dvTPVnuPs7xCRfUBBA1bgeWGuevFUZ+Kgl9MBHdgfKU=" ;
39- } )
40- ] ;
41-
4234 postPatch = ''
4335 # flask-restful is unmaintained and breaks regularly, don't depend on it
4436 substituteInPlace tests/test_views.py \
4537 --replace-fail "import flask_restful" ""
4638 '' ;
4739
48- build-system = [ setuptools ] ;
40+ build-system = [
41+ hatchling
42+ hatch-vcs
43+ ] ;
4944
5045 dependencies = [
5146 flask
5247 limits
5348 ordered-set
54- rich
5549 ] ;
5650
5751 optional-dependencies = {
52+ cli = [ rich ] ;
5853 redis = limits . optional-dependencies . redis ;
5954 memcached = limits . optional-dependencies . memcached ;
6055 mongodb = limits . optional-dependencies . mongodb ;
6156 } ;
6257
6358 nativeCheckInputs = [
6459 asgiref
60+ pytest-check
6561 pytest-cov-stub
6662 pytest-mock
6763 pytestCheckHook
6864 hiro
6965 redis
7066 pymemcache
7167 pymongo
72- ] ;
68+ ]
69+ ++ optional-dependencies . cli ;
7370
7471 disabledTests = [
7572 # flask-restful is unmaintained and breaks regularly
You can’t perform that action at this time.
0 commit comments