2019-07-18 23:02:03 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, pillow
|
|
|
|
, mongoengine
|
|
|
|
, pymongo
|
|
|
|
, wtf-peewee
|
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-citext
|
2020-06-23 20:54:37 +01:00
|
|
|
, sqlalchemy-utils
|
2019-07-18 23:02:03 +01:00
|
|
|
, flask-mongoengine
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, flask-babelex
|
|
|
|
, shapely
|
|
|
|
, geoalchemy2
|
|
|
|
, psycopg2
|
2020-06-23 20:54:37 +01:00
|
|
|
, arrow
|
|
|
|
, colour
|
|
|
|
, email_validator
|
2019-07-18 23:02:03 +01:00
|
|
|
, flask
|
|
|
|
, wtforms
|
|
|
|
, isPy27
|
|
|
|
, enum34
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-admin";
|
2020-06-23 20:54:37 +01:00
|
|
|
version = "1.5.6";
|
2019-07-18 23:02:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-Admin";
|
|
|
|
inherit version;
|
2020-06-23 20:54:37 +01:00
|
|
|
sha256 = "1f31vzc0p2xni5mh1wvjk9jxf4ddlx2fj4r0f3vv2n9db3c63iv8";
|
2019-07-18 23:02:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
pillow
|
|
|
|
mongoengine
|
|
|
|
pymongo
|
|
|
|
wtf-peewee
|
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-citext
|
2020-06-23 20:54:37 +01:00
|
|
|
sqlalchemy-utils
|
2019-07-18 23:02:03 +01:00
|
|
|
flask-mongoengine
|
|
|
|
flask_sqlalchemy
|
|
|
|
flask-babelex
|
|
|
|
shapely
|
|
|
|
geoalchemy2
|
|
|
|
psycopg2
|
2020-06-23 20:54:37 +01:00
|
|
|
arrow
|
|
|
|
colour
|
|
|
|
email_validator
|
2019-07-18 23:02:03 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
wtforms
|
|
|
|
] ++ lib.optionals isPy27 [ enum34 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-06-23 20:54:37 +01:00
|
|
|
# disable tests that require mongodb, postresql, or network
|
2019-11-15 21:14:25 +00:00
|
|
|
nosetests \
|
|
|
|
-e "mongoengine" \
|
|
|
|
-e "pymongo" \
|
|
|
|
-e "test_form_upload" \
|
|
|
|
-e "test_postgres" \
|
|
|
|
-e "geoa" \
|
2020-06-23 20:54:37 +01:00
|
|
|
-e "test_ajax_fk" \
|
2019-11-15 21:14:25 +00:00
|
|
|
flask_admin/tests
|
2019-07-18 23:02:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and extensible admin interface framework for Flask";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/flask-admin/flask-admin/";
|
2019-07-18 23:02:03 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|