ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / flask-admin / default.nix
blobeae3bd65bc13e33409064ea887af737db3d3425b
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
29 buildPythonPackage rec {
30   pname = "flask-admin";
31   version = "1.6.0";
32   format = "setuptools";
34   disabled = pythonOlder "3.8";
36   src = fetchPypi {
37     pname = "Flask-Admin";
38     inherit version;
39     hash = "sha256-Qk/8ebew3/8FFVVobqEuhuSN/6ysFL6qMZ+0UCrECYg=";
40   };
42   propagatedBuildInputs = [
43     flask
44     wtforms
45   ];
47   passthru.optional-dependencies = {
48     aws = [
49       boto
50     ];
51     azure = [
52       azure-storage-blob
53     ];
54   };
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   ];
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   ];
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   ];
100   pythonImportsCheck = [
101     "flask_admin"
102   ];
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   };