2019-07-18 21:10:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, flask_wtf
|
|
|
|
, mongoengine
|
|
|
|
, six
|
|
|
|
, nose
|
|
|
|
, rednose
|
|
|
|
, coverage
|
2021-04-20 19:06:13 +00:00
|
|
|
, email_validator
|
2019-07-18 21:10:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-mongoengine";
|
2021-03-24 17:41:48 +00:00
|
|
|
version = "1.0.0";
|
2019-07-18 21:10:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MongoEngine";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-24 17:41:48 +00:00
|
|
|
sha256 = "10g9b13ls2msnhv8j44gslrfxa2ppqz2y1xjn2a4gg4m9mdjv8b2";
|
2019-07-18 21:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-20 19:06:13 +00:00
|
|
|
email_validator
|
2019-07-18 21:10:15 +00:00
|
|
|
flask
|
|
|
|
flask_wtf
|
|
|
|
mongoengine
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# they set test requirements to setup_requirements...
|
|
|
|
buildInputs = [
|
|
|
|
nose
|
|
|
|
rednose
|
|
|
|
coverage
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require working mongodb connection
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Flask-MongoEngine is a Flask extension that provides integration with MongoEngine and WTF model forms";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mongoengine/flask-mongoengine";
|
2019-07-18 21:10:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|