Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 71 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, pillow 6, mongoengine 7, pymongo 8, wtf-peewee 9, sqlalchemy 10, sqlalchemy-citext 11, flask-mongoengine 12, flask_sqlalchemy 13, flask-babelex 14, shapely 15, geoalchemy2 16, psycopg2 17, flask 18, wtforms 19, isPy27 20, enum34 21}: 22 23buildPythonPackage rec { 24 pname = "flask-admin"; 25 version = "1.5.3"; 26 27 src = fetchPypi { 28 pname = "Flask-Admin"; 29 inherit version; 30 sha256 = "ca0be6ec11a6913b73f656c65c444ae5be416c57c75638dd3199376ce6bc7422"; 31 }; 32 33 checkInputs = [ 34 nose 35 pillow 36 mongoengine 37 pymongo 38 wtf-peewee 39 sqlalchemy 40 sqlalchemy-citext 41 flask-mongoengine 42 flask_sqlalchemy 43 flask-babelex 44 shapely 45 geoalchemy2 46 psycopg2 47 ]; 48 49 propagatedBuildInputs = [ 50 flask 51 wtforms 52 ] ++ lib.optionals isPy27 [ enum34 ]; 53 54 checkPhase = '' 55 # disable tests that require mongodb, postresql 56 nosetests \ 57 -e "mongoengine" \ 58 -e "pymongo" \ 59 -e "test_form_upload" \ 60 -e "test_postgres" \ 61 -e "geoa" \ 62 flask_admin/tests 63 ''; 64 65 meta = with lib; { 66 description = "Simple and extensible admin interface framework for Flask"; 67 homepage = https://github.com/flask-admin/flask-admin/; 68 license = licenses.bsd3; 69 maintainers = [ maintainers.costrouc ]; 70 }; 71}