Merge pull request #169939 from fabaff/flask-appbuilder-fix
python3Packages.flask-appbuilder: 3.4.4 -> 4.0.0
This commit is contained in:
commit
e7fb7bd767
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flask-appbuilder";
|
pname = "flask-appbuilder";
|
||||||
version = "3.4.4";
|
version = "4.0.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -35,14 +35,10 @@ buildPythonPackage rec {
|
|||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "Flask-AppBuilder";
|
pname = "Flask-AppBuilder";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "sha256-uZzuvNusqMzAS/vmg3CuZ+D442J4LbFwsBboVIx/srE=";
|
hash = "sha256-g+iHUL83PokXPGu7HJ8ffLocQr0uGpMqS5MbfIlZZ2E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# See here: https://github.com/dpgaspar/Flask-AppBuilder/commit/7097a7b133f27c78d2b54d2a46e4a4c24478a066.patch
|
|
||||||
# https://github.com/dpgaspar/Flask-AppBuilder/pull/1610
|
|
||||||
# The patch from the PR doesn't apply cleanly so I edited it manually.
|
|
||||||
patches = [
|
patches = [
|
||||||
./upgrade-to-flask_jwt_extended-4.patch
|
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
# https://github.com/dpgaspar/Flask-AppBuilder/pull/1734
|
# https://github.com/dpgaspar/Flask-AppBuilder/pull/1734
|
||||||
name = "flask-appbuilder-wtf3.patch";
|
name = "flask-appbuilder-wtf3.patch";
|
||||||
@ -82,16 +78,11 @@ buildPythonPackage rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "apispec[yaml]>=3.3, <4" "apispec[yaml] >=3.3" \
|
--replace "apispec[yaml]>=3.3, <4" "apispec[yaml] >=3.3" \
|
||||||
--replace "Flask>=0.12, <2" "Flask" \
|
--replace "Flask-Login>=0.3, <0.5" "Flask-Login >=0.3" \
|
||||||
--replace "Flask-Login>=0.3, <0.5" "Flask-Login >=0.3, <0.6" \
|
|
||||||
--replace "Flask-Babel>=1, <2" "Flask-Babel >=1, <3" \
|
|
||||||
--replace "Flask-WTF>=0.14.2, <0.15.0" "Flask-WTF" \
|
--replace "Flask-WTF>=0.14.2, <0.15.0" "Flask-WTF" \
|
||||||
--replace "WTForms<3.0.0" "WTForms" \
|
--replace "WTForms<3.0.0" "WTForms" \
|
||||||
--replace "marshmallow-sqlalchemy>=0.22.0, <0.27.0" "marshmallow-sqlalchemy" \
|
--replace "marshmallow-sqlalchemy>=0.22.0, <0.27.0" "marshmallow-sqlalchemy" \
|
||||||
--replace "Flask-JWT-Extended>=3.18, <4" "Flask-JWT-Extended>=4.1.0" \
|
--replace "prison>=0.2.1, <1.0.0" "prison"
|
||||||
--replace "PyJWT>=1.7.1, <2.0.0" "PyJWT>=2.0.1" \
|
|
||||||
--replace "prison>=0.2.1, <1.0.0" "prison" \
|
|
||||||
--replace "SQLAlchemy<1.4.0" "SQLAlchemy"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Majority of tests require network access or mongo
|
# Majority of tests require network access or mongo
|
||||||
|
Loading…
Reference in New Issue
Block a user