mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
50 lines
956 B
Nix
50 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 ];
|
|
};
|
|
}
|