nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 92 lines 1.8 kB view raw
1{ lib 2, arrow 3, buildPythonPackage 4, colour 5, email_validator 6, enum34 7, fetchPypi 8, flask 9, flask_sqlalchemy 10, flask-babelex 11, flask-mongoengine 12, geoalchemy2 13, isPy27 14, mongoengine 15, pillow 16, psycopg2 17, pymongo 18, pytestCheckHook 19, shapely 20, sqlalchemy 21, sqlalchemy-citext 22, sqlalchemy-utils 23, wtf-peewee 24, wtforms 25}: 26 27buildPythonPackage rec { 28 pname = "flask-admin"; 29 version = "1.6.0"; 30 format = "setuptools"; 31 32 src = fetchPypi { 33 pname = "Flask-Admin"; 34 inherit version; 35 sha256 = "1209qhm51d4z66mbw55cmkzqvr465shnws2m2l2zzpxhnxwzqks2"; 36 }; 37 38 propagatedBuildInputs = [ 39 flask 40 wtforms 41 ] ++ lib.optionals isPy27 [ 42 enum34 43 ]; 44 45 checkInputs = [ 46 arrow 47 colour 48 email_validator 49 flask_sqlalchemy 50 flask-babelex 51 flask-mongoengine 52 geoalchemy2 53 mongoengine 54 pillow 55 psycopg2 56 pymongo 57 pytestCheckHook 58 shapely 59 sqlalchemy 60 sqlalchemy-citext 61 sqlalchemy-utils 62 wtf-peewee 63 ]; 64 65 disabledTests = [ 66 # Incompatible with werkzeug 2.1 67 "test_mockview" 68 ]; 69 70 disabledTestPaths = [ 71 # Tests have additional requirements 72 "flask_admin/tests/geoa/test_basic.py" 73 "flask_admin/tests/mongoengine/test_basic.py" 74 "flask_admin/tests/pymongo/test_basic.py" 75 "flask_admin/tests/sqla/test_basic.py" 76 "flask_admin/tests/sqla/test_form_rules.py" 77 "flask_admin/tests/sqla/test_inlineform.py" 78 "flask_admin/tests/sqla/test_postgres.py" 79 "flask_admin/tests/sqla/test_translation.py" 80 ]; 81 82 pythonImportsCheck = [ 83 "flask_admin" 84 ]; 85 86 meta = with lib; { 87 description = "Simple and extensible admin interface framework for Flask"; 88 homepage = "https://github.com/flask-admin/flask-admin/"; 89 license = licenses.bsd3; 90 maintainers = with maintainers; [ costrouc ]; 91 }; 92}