1{ lib 2, arrow 3, azure-storage-blob 4, boto 5, buildPythonPackage 6, colour 7, email-validator 8, enum34 9, fetchPypi 10, flask 11, flask-babelex 12, flask-mongoengine 13, flask-sqlalchemy 14, geoalchemy2 15, mongoengine 16, pillow 17, psycopg2 18, pymongo 19, pytestCheckHook 20, pythonOlder 21, shapely 22, sqlalchemy 23, sqlalchemy-citext 24, sqlalchemy-utils 25, wtf-peewee 26, wtforms 27}: 28 29buildPythonPackage rec { 30 pname = "flask-admin"; 31 version = "1.6.0"; 32 format = "setuptools"; 33 34 disabled = pythonOlder "3.8"; 35 36 src = fetchPypi { 37 pname = "Flask-Admin"; 38 inherit version; 39 hash = "sha256-Qk/8ebew3/8FFVVobqEuhuSN/6ysFL6qMZ+0UCrECYg="; 40 }; 41 42 propagatedBuildInputs = [ 43 flask 44 wtforms 45 ]; 46 47 passthru.optional-dependencies = { 48 aws = [ 49 boto 50 ]; 51 azure = [ 52 azure-storage-blob 53 ]; 54 }; 55 56 checkInputs = [ 57 arrow 58 colour 59 email-validator 60 flask-babelex 61 flask-mongoengine 62 flask-sqlalchemy 63 geoalchemy2 64 mongoengine 65 pillow 66 psycopg2 67 pymongo 68 pytestCheckHook 69 shapely 70 sqlalchemy 71 sqlalchemy-citext 72 sqlalchemy-utils 73 wtf-peewee 74 ]; 75 76 disabledTests = [ 77 # Incompatible with werkzeug 2.1 78 "test_mockview" 79 # Tests are outdated and don't work with peewee 80 "test_nested_flask_views" 81 "test_export_csv" 82 "test_list_row_actions" 83 "test_column_editable_list" 84 "test_column_filters" 85 "test_export_csv" 86 ]; 87 88 disabledTestPaths = [ 89 # Tests have additional requirements 90 "flask_admin/tests/geoa/test_basic.py" 91 "flask_admin/tests/mongoengine/test_basic.py" 92 "flask_admin/tests/pymongo/test_basic.py" 93 "flask_admin/tests/sqla/test_basic.py" 94 "flask_admin/tests/sqla/test_form_rules.py" 95 "flask_admin/tests/sqla/test_inlineform.py" 96 "flask_admin/tests/sqla/test_postgres.py" 97 "flask_admin/tests/sqla/test_translation.py" 98 ]; 99 100 pythonImportsCheck = [ 101 "flask_admin" 102 ]; 103 104 meta = with lib; { 105 description = "Admin interface framework for Flask"; 106 homepage = "https://github.com/flask-admin/flask-admin/"; 107 license = licenses.bsd3; 108 maintainers = with maintainers; [ costrouc ]; 109 }; 110}