2019-07-19 00:10:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, apispec
|
|
|
|
, colorama
|
|
|
|
, click
|
2021-01-28 23:43:54 +00:00
|
|
|
, email_validator
|
2019-07-19 00:10:30 +01:00
|
|
|
, 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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-appbuilder";
|
2021-01-28 23:43:54 +00:00
|
|
|
version = "3.1.1";
|
2019-07-19 00:10:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-AppBuilder";
|
|
|
|
inherit version;
|
2021-01-28 23:43:54 +00:00
|
|
|
sha256 = "076b020b0ba125339a2e710e74eab52648cde2b18599f7cb0fa1eada9bbb648c";
|
2019-07-19 00:10:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
apispec
|
|
|
|
colorama
|
|
|
|
click
|
2021-01-28 23:43:54 +00:00
|
|
|
email_validator
|
2019-07-19 00:10:30 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-24 20:15:53 +00:00
|
|
|
substituteInPlace setup.py \
|
2021-01-28 23:43:54 +00:00
|
|
|
--replace "apispec[yaml]>=3.3, <4" "apispec" \
|
2020-12-08 18:00:47 +00:00
|
|
|
--replace "Flask-Login>=0.3, <0.5" "Flask-Login" \
|
2021-01-28 23:43:54 +00:00
|
|
|
--replace "Flask-Babel>=1, <2" "Flask-Babel" \
|
|
|
|
--replace "marshmallow-sqlalchemy>=0.22.0, <0.24.0" "marshmallow-sqlalchemy" \
|
|
|
|
--replace "prison>=0.1.3, <1.0.0" "prison"
|
2019-07-19 00:10:30 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-28 23:43:54 +00:00
|
|
|
|
2019-07-19 00:10:30 +01: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 20:15:53 +00:00
|
|
|
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
|
2019-07-19 00:10:30 +01:00
|
|
|
license = licenses.bsd3;
|
2020-03-24 20:15:53 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-19 00:10:30 +01:00
|
|
|
};
|
|
|
|
}
|