30 buildPythonPackage rec {
31 pname = "flask-admin";
33 format = "setuptools";
35 disabled = pythonOlder "3.8";
38 pname = "Flask-Admin";
40 hash = "sha256-JMrir4MramEaAdfcNfQtJmwdbHWkJrhp2MskG3gjM2k=";
44 # https://github.com/flask-admin/flask-admin/pull/2374
46 name = "pillow-10-compatibility.patch";
47 url = "https://github.com/flask-admin/flask-admin/commit/96b92deef8b087e86a9dc3e84381d254ea5c0342.patch";
48 hash = "sha256-iR5kxyeZaEyved5InZuPmcglTD77zW18/eSHGwOuW40=";
52 propagatedBuildInputs = [
57 passthru.optional-dependencies = {
87 # Incompatible with werkzeug 2.1
89 # Tests are outdated and don't work with peewee
90 "test_nested_flask_views"
92 "test_list_row_actions"
93 "test_column_editable_list"
99 # Tests have additional requirements
100 "flask_admin/tests/geoa/test_basic.py"
101 "flask_admin/tests/mongoengine/test_basic.py"
102 "flask_admin/tests/pymongo/test_basic.py"
103 "flask_admin/tests/sqla/test_basic.py"
104 "flask_admin/tests/sqla/test_form_rules.py"
105 "flask_admin/tests/sqla/test_inlineform.py"
106 "flask_admin/tests/sqla/test_postgres.py"
107 "flask_admin/tests/sqla/test_translation.py"
108 # RuntimeError: Working outside of application context.
109 "flask_admin/tests/sqla/test_multi_pk.py"
111 "flask_admin/tests/fileadmin/test_fileadmin.py"
114 pythonImportsCheck = [
119 description = "Admin interface framework for Flask";
120 homepage = "https://github.com/flask-admin/flask-admin/";
121 changelog = "https://github.com/flask-admin/flask-admin/releases/tag/v${version}";
122 license = licenses.bsd3;
123 maintainers = with maintainers; [ ];