9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
49 lines
956 B
Nix
49 lines
956 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
, flask_wtf
|
|
, mongoengine
|
|
, six
|
|
, nose
|
|
, rednose
|
|
, coverage
|
|
, email_validator
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-mongoengine";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MongoEngine";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "10g9b13ls2msnhv8j44gslrfxa2ppqz2y1xjn2a4gg4m9mdjv8b2";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
email_validator
|
|
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";
|
|
homepage = "https://github.com/mongoengine/flask-mongoengine";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|