2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, apispec
|
|
|
|
, colorama
|
|
|
|
, click
|
2022-06-26 10:26:21 +00:00
|
|
|
, email-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask
|
|
|
|
, flask-babel
|
2023-07-15 17:15:38 +00:00
|
|
|
, flask-limiter
|
2022-10-21 18:38:19 +00:00
|
|
|
, flask-login
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask-openid
|
2022-08-12 12:06:08 +00:00
|
|
|
, flask-sqlalchemy
|
2022-06-16 17:23:12 +00:00
|
|
|
, flask-wtf
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask-jwt-extended
|
|
|
|
, jsonschema
|
|
|
|
, marshmallow
|
|
|
|
, marshmallow-enum
|
|
|
|
, marshmallow-sqlalchemy
|
|
|
|
, python-dateutil
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, prison
|
|
|
|
, pyjwt
|
2021-05-20 23:08:51 +00:00
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlalchemy-utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-appbuilder";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.4.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-AppBuilder";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-pk1MO1GXVHdEx8QffrD+Aga6Fnc2nOR5A90Iw8m3U70=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
apispec
|
|
|
|
colorama
|
|
|
|
click
|
2022-06-26 10:26:21 +00:00
|
|
|
email-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
flask
|
|
|
|
flask-babel
|
2023-07-15 17:15:38 +00:00
|
|
|
flask-limiter
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-login
|
2020-04-24 23:36:52 +00:00
|
|
|
flask-openid
|
2022-08-12 12:06:08 +00:00
|
|
|
flask-sqlalchemy
|
2022-06-16 17:23:12 +00:00
|
|
|
flask-wtf
|
2020-04-24 23:36:52 +00:00
|
|
|
flask-jwt-extended
|
|
|
|
jsonschema
|
|
|
|
marshmallow
|
|
|
|
marshmallow-enum
|
|
|
|
marshmallow-sqlalchemy
|
|
|
|
python-dateutil
|
|
|
|
prison
|
|
|
|
pyjwt
|
2021-05-20 23:08:51 +00:00
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlalchemy-utils
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ apispec.optional-dependencies.yaml;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-03-04 12:14:45 +00:00
|
|
|
--replace "apispec[yaml]>=3.3, <6" "apispec[yaml]" \
|
|
|
|
--replace "Flask-SQLAlchemy>=2.4, <3" "Flask-SQLAlchemy" \
|
|
|
|
--replace "Flask-Babel>=1, <3" "Flask-Babel" \
|
2022-02-20 05:27:41 +00:00
|
|
|
--replace "marshmallow-sqlalchemy>=0.22.0, <0.27.0" "marshmallow-sqlalchemy" \
|
2022-04-27 09:35:20 +00:00
|
|
|
--replace "prison>=0.2.1, <1.0.0" "prison"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# Majority of tests require network access or mongo
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_appbuilder"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "Application development framework, built on top of Flask";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/dpgaspar/Flask-AppBuilder/blob/v${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-03-04 12:14:45 +00:00
|
|
|
# Support for flask-sqlalchemy >= 3.0 is missing, https://github.com/dpgaspar/Flask-AppBuilder/pull/1940
|
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|