about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pecan/default.nix
blob: 332f5153a9811fbe073e2fe34c34044b39588a9f (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
48
49
50
51
52
53
54
55
56
57
58
59
{ stdenv
, fetchPypi
, buildPythonPackage
, isPy27
# Python deps
, logutils
, Mako
, singledispatch
, six
, webtest
# Test Inputs
, pytestCheckHook
, genshi
, gunicorn
, jinja2
, Kajiki
, mock
, sqlalchemy
, uwsgi
, virtualenv
}:

buildPythonPackage rec {
  pname = "pecan";
  version = "1.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
  };

  propagatedBuildInputs = [
    logutils
    Mako
    singledispatch
    six
    webtest
  ];

  checkInputs = [
    pytestCheckHook
    genshi
    gunicorn
    jinja2
    mock
    sqlalchemy
    virtualenv
  ] ++ stdenv.lib.optionals isPy27 [ Kajiki ];

  pytestFlagsArray = [
    "--pyargs pecan "
  ];

  meta = with stdenv.lib; {
    description = "Pecan";
    homepage = "http://www.pecanpy.org/";
    changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
  };
}