2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, arrow
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, colour
|
|
|
|
, email_validator
|
|
|
|
, enum34
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, flask
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, flask-babelex
|
|
|
|
, flask-mongoengine
|
|
|
|
, geoalchemy2
|
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, mongoengine
|
2021-12-06 16:07:01 +00:00
|
|
|
, pillow
|
|
|
|
, psycopg2
|
2020-04-24 23:36:52 +00:00
|
|
|
, pymongo
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-citext
|
2020-07-18 16:06:22 +00:00
|
|
|
, sqlalchemy-utils
|
2021-12-06 16:07:01 +00:00
|
|
|
, wtf-peewee
|
2020-04-24 23:36:52 +00:00
|
|
|
, wtforms
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-admin";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.5.8";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-Admin";
|
|
|
|
inherit version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-6wah8xuYiB3uU6VcZPrr0ZkNaqw4gmNksoDfCyZ5/3Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
wtforms
|
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
enum34
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
arrow
|
|
|
|
colour
|
|
|
|
email_validator
|
|
|
|
flask_sqlalchemy
|
|
|
|
flask-babelex
|
|
|
|
flask-mongoengine
|
|
|
|
geoalchemy2
|
2020-04-24 23:36:52 +00:00
|
|
|
mongoengine
|
2021-12-06 16:07:01 +00:00
|
|
|
pillow
|
|
|
|
psycopg2
|
2020-04-24 23:36:52 +00:00
|
|
|
pymongo
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-citext
|
2020-07-18 16:06:22 +00:00
|
|
|
sqlalchemy-utils
|
2021-12-06 16:07:01 +00:00
|
|
|
wtf-peewee
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_admin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and extensible admin interface framework for Flask";
|
|
|
|
homepage = "https://github.com/flask-admin/flask-admin/";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|