59 lines
887 B
Nix
59 lines
887 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, isPy27
|
|
# Python deps
|
|
, logutils
|
|
, Mako
|
|
, singledispatch
|
|
, six
|
|
, webtest
|
|
# Test Inputs
|
|
, pytestCheckHook
|
|
, genshi
|
|
, gunicorn
|
|
, jinja2
|
|
, Kajiki
|
|
, mock
|
|
, sqlalchemy
|
|
, 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
|
|
] ++ lib.optionals isPy27 [ Kajiki ];
|
|
|
|
pytestFlagsArray = [
|
|
"--pyargs pecan "
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pecan";
|
|
homepage = "http://www.pecanpy.org/";
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
|
};
|
|
}
|