439a6efcab
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
58 lines
887 B
Nix
58 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";
|
|
};
|
|
}
|