1{ lib
2, fetchPypi
3, buildPythonPackage
4, isPy27
5# Python deps
6, logutils
7, Mako
8, singledispatch ? null
9, six
10, webtest
11# Test Inputs
12, pytestCheckHook
13, genshi
14, gunicorn
15, jinja2
16, Kajiki
17, mock
18, sqlalchemy
19, virtualenv
20}:
21
22buildPythonPackage rec {
23 pname = "pecan";
24 version = "1.4.0";
25
26 src = fetchPypi {
27 inherit pname version;
28 sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
29 };
30
31 propagatedBuildInputs = [
32 logutils
33 Mako
34 singledispatch
35 six
36 webtest
37 ];
38
39 checkInputs = [
40 pytestCheckHook
41 genshi
42 gunicorn
43 jinja2
44 mock
45 sqlalchemy
46 virtualenv
47 ] ++ lib.optionals isPy27 [ Kajiki ];
48
49 pytestFlagsArray = [
50 "--pyargs pecan "
51 ];
52
53 meta = with lib; {
54 description = "Pecan";
55 homepage = "http://www.pecanpy.org/";
56 changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
57 };
58}