1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 logutils,
6 mako,
7 webob,
8 webtest,
9 pythonOlder,
10 pytestCheckHook,
11 genshi,
12 gunicorn,
13 jinja2,
14 sqlalchemy,
15 virtualenv,
16 setuptools,
17}:
18
19buildPythonPackage rec {
20 pname = "pecan";
21 version = "1.5.1";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.6";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-YGMnLV+GB3P7tLSyrhsJ2oyVQGLvhxFQwGz9sjkdk1U=";
29 };
30
31 propagatedBuildInputs = [
32 logutils
33 mako
34 webob
35 setuptools
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 genshi
41 gunicorn
42 jinja2
43 sqlalchemy
44 virtualenv
45 webtest
46 ];
47
48 pytestFlagsArray = [ "--pyargs pecan" ];
49
50 pythonImportsCheck = [ "pecan" ];
51
52 meta = with lib; {
53 changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
54 description = "WSGI object-dispatching web framework";
55 homepage = "https://www.pecanpy.org/";
56 license = licenses.bsd3;
57 maintainers = with maintainers; [ applePrincess ];
58 };
59}