nixpkgs/pkgs/development/python-modules/flask-admin/default.nix

81 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, nose
, pillow
, mongoengine
, pymongo
, wtf-peewee
, sqlalchemy
, sqlalchemy-citext
2020-06-23 20:54:37 +01:00
, sqlalchemy-utils
, flask-mongoengine
, flask_sqlalchemy
, flask-babelex
, shapely
, geoalchemy2
, psycopg2
2020-06-23 20:54:37 +01:00
, arrow
, colour
, email_validator
, flask
, wtforms
, isPy27
, enum34
}:
buildPythonPackage rec {
pname = "flask-admin";
2020-06-23 20:54:37 +01:00
version = "1.5.6";
src = fetchPypi {
pname = "Flask-Admin";
inherit version;
2020-06-23 20:54:37 +01:00
sha256 = "1f31vzc0p2xni5mh1wvjk9jxf4ddlx2fj4r0f3vv2n9db3c63iv8";
};
checkInputs = [
nose
pillow
mongoengine
pymongo
wtf-peewee
sqlalchemy
sqlalchemy-citext
2020-06-23 20:54:37 +01:00
sqlalchemy-utils
flask-mongoengine
flask_sqlalchemy
flask-babelex
shapely
geoalchemy2
psycopg2
2020-06-23 20:54:37 +01:00
arrow
colour
email_validator
];
propagatedBuildInputs = [
flask
wtforms
] ++ lib.optionals isPy27 [ enum34 ];
checkPhase = ''
2020-06-23 20:54:37 +01:00
# disable tests that require mongodb, postresql, or network
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" \
flask_admin/tests
'';
meta = with lib; {
description = "Simple and extensible admin interface framework for Flask";
homepage = "https://github.com/flask-admin/flask-admin/";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}