about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/flask-admin/default.nix
blob: bfdf0e46ea58eb1a26b84c2a4e819e6ab22b6409 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{ lib
, arrow
, buildPythonPackage
, colour
, email_validator
, enum34
, fetchPypi
, flask
, flask_sqlalchemy
, flask-babelex
, flask-mongoengine
, geoalchemy2
, isPy27
, mongoengine
, pillow
, psycopg2
, pymongo
, pytestCheckHook
, shapely
, sqlalchemy
, sqlalchemy-citext
, sqlalchemy-utils
, wtf-peewee
, wtforms
}:

buildPythonPackage rec {
  pname = "flask-admin";
  version = "1.5.8";
  format = "setuptools";

  src = fetchPypi {
    pname = "Flask-Admin";
    inherit version;
    sha256 = "sha256-6wah8xuYiB3uU6VcZPrr0ZkNaqw4gmNksoDfCyZ5/3Q=";
  };

  propagatedBuildInputs = [
    flask
    wtforms
  ] ++ lib.optionals isPy27 [
    enum34
  ];

  checkInputs = [
    arrow
    colour
    email_validator
    flask_sqlalchemy
    flask-babelex
    flask-mongoengine
    geoalchemy2
    mongoengine
    pillow
    psycopg2
    pymongo
    pytestCheckHook
    shapely
    sqlalchemy
    sqlalchemy-citext
    sqlalchemy-utils
    wtf-peewee
  ];

  disabledTestPaths = [
    # Tests have additional requirements
    "flask_admin/tests/geoa/test_basic.py"
    "flask_admin/tests/mongoengine/test_basic.py"
    "flask_admin/tests/pymongo/test_basic.py"
    "flask_admin/tests/sqla/test_basic.py"
    "flask_admin/tests/sqla/test_form_rules.py"
    "flask_admin/tests/sqla/test_postgres.py"
    "flask_admin/tests/sqla/test_translation.py"
  ];

  pythonImportsCheck = [
    "flask_admin"
  ];

  meta = with lib; {
    description = "Simple and extensible admin interface framework for Flask";
    homepage = "https://github.com/flask-admin/flask-admin/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ costrouc ];
  };
}