depot/third_party/nixpkgs/pkgs/development/python-modules/flask-mongoengine/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

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 ];
};
}