summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-mongoengine/default.nix
blob: 5e61a2415b7c13fd022ad8fe780c5300aea9c715 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, flask_wtf
, mongoengine
, six
, nose
, rednose
, coverage
}:

buildPythonPackage rec {
  pname = "flask-mongoengine";
  version = "0.9.5";

  src = fetchFromGitHub {
    owner = "MongoEngine";
    repo = pname;
    rev = "v${version}";
    sha256 = "05hfddf1dm594wnjyqhj0zmjfsf1kpmx1frjwhypgzx4hf62qcmr";
  };

  propagatedBuildInputs = [
    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 ];
  };
}