Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.1"; 32 format = "setuptools"; 33 34 disabled = pythonOlder "3.8"; 35 36 src = fetchPypi { 37 pname = "Flask-Admin"; 38 inherit version; 39 hash = "sha256-JMrir4MramEaAdfcNfQtJmwdbHWkJrhp2MskG3gjM2k="; 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 nativeCheckInputs = [ 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 # RuntimeError: Working outside of application context. 99 "flask_admin/tests/sqla/test_multi_pk.py" 100 ]; 101 102 pythonImportsCheck = [ 103 "flask_admin" 104 ]; 105 106 meta = with lib; { 107 description = "Admin interface framework for Flask"; 108 homepage = "https://github.com/flask-admin/flask-admin/"; 109 changelog = "https://github.com/flask-admin/flask-admin/releases/tag/v${version}"; 110 license = licenses.bsd3; 111 maintainers = with maintainers; [ costrouc ]; 112 }; 113}