2019-07-19 01:10:30 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, apispec
|
|
|
|
, colorama
|
|
|
|
, click
|
|
|
|
, flask
|
|
|
|
, flask-babel
|
|
|
|
, flask_login
|
|
|
|
, flask-openid
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, flask_wtf
|
|
|
|
, flask-jwt-extended
|
|
|
|
, jsonschema
|
|
|
|
, marshmallow
|
|
|
|
, marshmallow-enum
|
|
|
|
, marshmallow-sqlalchemy
|
|
|
|
, python-dateutil
|
|
|
|
, prison
|
|
|
|
, pyjwt
|
|
|
|
, pyyaml
|
|
|
|
, sqlalchemy-utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-appbuilder";
|
2020-03-24 21:15:53 +01:00
|
|
|
version = "2.3.0";
|
2019-07-19 01:10:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-AppBuilder";
|
|
|
|
inherit version;
|
2020-03-24 21:15:53 +01:00
|
|
|
sha256 = "04bsswi7daaqda01a83rd1f2gq6asii520f9arjf7bsy24pmbprc";
|
2019-07-19 01:10:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
apispec
|
|
|
|
colorama
|
|
|
|
click
|
|
|
|
flask
|
|
|
|
flask-babel
|
|
|
|
flask_login
|
|
|
|
flask-openid
|
|
|
|
flask_sqlalchemy
|
|
|
|
flask_wtf
|
|
|
|
flask-jwt-extended
|
|
|
|
jsonschema
|
|
|
|
marshmallow
|
|
|
|
marshmallow-enum
|
|
|
|
marshmallow-sqlalchemy
|
|
|
|
python-dateutil
|
|
|
|
prison
|
|
|
|
pyjwt
|
|
|
|
sqlalchemy-utils
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-24 21:15:53 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "apispec[yaml]>=1.1.1, <2" "apispec" \
|
|
|
|
--replace "jsonschema>=3.0.1, <4" "jsonschema" \
|
|
|
|
--replace "marshmallow>=2.18.0, <4.0.0" "marshmallow" \
|
|
|
|
--replace "PyJWT>=1.7.1" "PyJWT" \
|
|
|
|
--replace "Flask-SQLAlchemy>=2.4, <3" "Flask-SQLAlchemy" \
|
2020-07-02 05:24:46 +02:00
|
|
|
--replace "Flask-JWT-Extended>=3.18, <4" "Flask-JWT-Extended" \
|
2020-12-08 19:00:47 +01:00
|
|
|
--replace "Flask-Login>=0.3, <0.5" "Flask-Login" \
|
|
|
|
--replace "Flask-Babel>=1, <2" "Flask-Babel"
|
2019-07-19 01:10:30 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
# majority of tests require network access or mongo
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and rapid application development framework, built on top of Flask";
|
2020-03-24 21:15:53 +01:00
|
|
|
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
|
2019-07-19 01:10:30 +02:00
|
|
|
license = licenses.bsd3;
|
2020-03-24 21:15:53 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-19 01:10:30 +02:00
|
|
|
};
|
|
|
|
}
|