1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flask 5, flask-wtf 6, mongoengine 7, six 8, nose 9, rednose 10, coverage 11, email-validator 12}: 13 14buildPythonPackage rec { 15 pname = "flask-mongoengine"; 16 version = "1.0.0"; 17 18 src = fetchFromGitHub { 19 owner = "MongoEngine"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "10g9b13ls2msnhv8j44gslrfxa2ppqz2y1xjn2a4gg4m9mdjv8b2"; 23 }; 24 25 propagatedBuildInputs = [ 26 email-validator 27 flask 28 flask-wtf 29 mongoengine 30 six 31 ]; 32 33 # they set test requirements to setup_requirements... 34 buildInputs = [ 35 nose 36 rednose 37 coverage 38 ]; 39 40 # tests require working mongodb connection 41 doCheck = false; 42 43 meta = with lib; { 44 description = "Flask-MongoEngine is a Flask extension that provides integration with MongoEngine and WTF model forms"; 45 homepage = "https://github.com/mongoengine/flask-mongoengine"; 46 license = licenses.bsd3; 47 maintainers = [ maintainers.costrouc ]; 48 }; 49}