2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2020-09-25 04:45:31 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
# Python deps
|
|
|
|
, logutils
|
|
|
|
, Mako
|
2020-09-25 04:45:31 +00:00
|
|
|
, singledispatch
|
|
|
|
, six
|
|
|
|
, webtest
|
|
|
|
# Test Inputs
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, genshi
|
|
|
|
, gunicorn
|
|
|
|
, jinja2
|
2020-09-25 04:45:31 +00:00
|
|
|
, Kajiki
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
2020-09-25 04:45:31 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, virtualenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pecan";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
logutils
|
|
|
|
Mako
|
|
|
|
singledispatch
|
|
|
|
six
|
|
|
|
webtest
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
genshi
|
|
|
|
gunicorn
|
|
|
|
jinja2
|
|
|
|
mock
|
|
|
|
sqlalchemy
|
|
|
|
virtualenv
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals isPy27 [ Kajiki ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--pyargs pecan "
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pecan";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "http://www.pecanpy.org/";
|
|
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|