2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, arrow
|
2022-10-21 18:38:19 +00:00
|
|
|
, azure-storage-blob
|
|
|
|
, boto
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, colour
|
2022-06-26 10:26:21 +00:00
|
|
|
, email-validator
|
2021-12-06 16:07:01 +00:00
|
|
|
, enum34
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, flask
|
|
|
|
, flask-babelex
|
|
|
|
, flask-mongoengine
|
2022-10-21 18:38:19 +00:00
|
|
|
, flask-sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
, geoalchemy2
|
2020-04-24 23:36:52 +00:00
|
|
|
, mongoengine
|
2021-12-06 16:07:01 +00:00
|
|
|
, pillow
|
|
|
|
, psycopg2
|
2020-04-24 23:36:52 +00:00
|
|
|
, pymongo
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-citext
|
2020-07-18 16:06:22 +00:00
|
|
|
, sqlalchemy-utils
|
2021-12-06 16:07:01 +00:00
|
|
|
, wtf-peewee
|
2020-04-24 23:36:52 +00:00
|
|
|
, wtforms
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-admin";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.6.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-Admin";
|
|
|
|
inherit version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-Qk/8ebew3/8FFVVobqEuhuSN/6ysFL6qMZ+0UCrECYg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
wtforms
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
aws = [
|
|
|
|
boto
|
|
|
|
];
|
|
|
|
azure = [
|
|
|
|
azure-storage-blob
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
arrow
|
|
|
|
colour
|
2022-06-26 10:26:21 +00:00
|
|
|
email-validator
|
2021-12-06 16:07:01 +00:00
|
|
|
flask-babelex
|
|
|
|
flask-mongoengine
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
geoalchemy2
|
2020-04-24 23:36:52 +00:00
|
|
|
mongoengine
|
2021-12-06 16:07:01 +00:00
|
|
|
pillow
|
|
|
|
psycopg2
|
2020-04-24 23:36:52 +00:00
|
|
|
pymongo
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-citext
|
2020-07-18 16:06:22 +00:00
|
|
|
sqlalchemy-utils
|
2021-12-06 16:07:01 +00:00
|
|
|
wtf-peewee
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Incompatible with werkzeug 2.1
|
|
|
|
"test_mockview"
|
2022-10-21 18:38:19 +00:00
|
|
|
# Tests are outdated and don't work with peewee
|
|
|
|
"test_nested_flask_views"
|
|
|
|
"test_export_csv"
|
|
|
|
"test_list_row_actions"
|
|
|
|
"test_column_editable_list"
|
|
|
|
"test_column_filters"
|
|
|
|
"test_export_csv"
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests have additional requirements
|
|
|
|
"flask_admin/tests/geoa/test_basic.py"
|
|
|
|
"flask_admin/tests/mongoengine/test_basic.py"
|
|
|
|
"flask_admin/tests/pymongo/test_basic.py"
|
|
|
|
"flask_admin/tests/sqla/test_basic.py"
|
|
|
|
"flask_admin/tests/sqla/test_form_rules.py"
|
2022-02-10 20:34:41 +00:00
|
|
|
"flask_admin/tests/sqla/test_inlineform.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
"flask_admin/tests/sqla/test_postgres.py"
|
|
|
|
"flask_admin/tests/sqla/test_translation.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_admin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "Admin interface framework for Flask";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/flask-admin/flask-admin/";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|