1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00

pythonPackages.flask-admin: init at 1.5.3

This commit is contained in:
Chris Ostrouchov 2019-07-18 18:02:03 -04:00 committed by Ariel
parent 4a69b3b6be
commit 0cb3cbfe57
2 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,70 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, pillow
, mongoengine
, pymongo
, wtf-peewee
, sqlalchemy
, sqlalchemy-citext
, flask-mongoengine
, flask_sqlalchemy
, flask-babelex
, shapely
, geoalchemy2
, psycopg2
, flask
, wtforms
, isPy27
, enum34
}:
buildPythonPackage rec {
pname = "flask-admin";
version = "1.5.3";
src = fetchPypi {
pname = "Flask-Admin";
inherit version;
sha256 = "ca0be6ec11a6913b73f656c65c444ae5be416c57c75638dd3199376ce6bc7422";
};
checkInputs = [
nose
pillow
mongoengine
pymongo
wtf-peewee
sqlalchemy
sqlalchemy-citext
flask-mongoengine
flask_sqlalchemy
flask-babelex
shapely
geoalchemy2
psycopg2
];
propagatedBuildInputs = [
flask
wtforms
] ++ lib.optionals isPy27 [ enum34 ];
checkPhase = ''
# disable tests that require mongodb, postresql
rm flask_admin/tests/mongoengine/test_basic.py
rm flask_admin/tests/pymongo/__init__.py
rm flask_admin/tests/test_form_upload.py
rm flask_admin/tests/sqla/test_postgres.py
rm flask_admin/tests/geoa/test_basic.py
nosetests 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 ];
};
}

View file

@ -3197,6 +3197,8 @@ in {
flask = callPackage ../development/python-modules/flask { };
flask-admin = callPackage ../development/python-modules/flask-admin { };
flask-api = callPackage ../development/python-modules/flask-api { };
flask_assets = callPackage ../development/python-modules/flask-assets { };