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