2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-08-09 04:33:54 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, logutils
|
|
|
|
, Mako
|
2020-09-20 20:29:33 +00:00
|
|
|
, webtest
|
2022-01-12 18:19:50 +00:00
|
|
|
, pythonOlder
|
2020-09-20 20:29:33 +00:00
|
|
|
, pytestCheckHook
|
2017-08-09 04:33:54 +00:00
|
|
|
, genshi
|
|
|
|
, gunicorn
|
|
|
|
, jinja2
|
2022-01-12 18:19:50 +00:00
|
|
|
, six
|
2020-09-20 20:29:33 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, virtualenv
|
2017-08-09 04:33:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pecan";
|
2022-07-03 17:50:27 +00:00
|
|
|
version = "1.4.2";
|
2022-01-12 18:19:50 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-08-09 04:33:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-03 17:50:27 +00:00
|
|
|
sha256 = "sha256-SbJV5wHD8UYWBfWw6PVPDCGSLXhF1BTCTdZAn+aV1VA=";
|
2017-08-09 04:33:54 +00:00
|
|
|
};
|
|
|
|
|
2020-09-20 20:29:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
logutils
|
|
|
|
Mako
|
|
|
|
webtest
|
2022-01-12 18:19:50 +00:00
|
|
|
six
|
2017-08-09 04:33:54 +00:00
|
|
|
];
|
|
|
|
|
2020-09-20 20:29:33 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
genshi
|
|
|
|
gunicorn
|
|
|
|
jinja2
|
|
|
|
sqlalchemy
|
|
|
|
virtualenv
|
2022-01-12 18:19:50 +00:00
|
|
|
];
|
2020-09-20 20:29:33 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
2022-01-12 18:19:50 +00:00
|
|
|
"--pyargs pecan"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pecan"
|
2020-09-20 20:29:33 +00:00
|
|
|
];
|
2019-01-02 18:40:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-20 20:29:33 +00:00
|
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
2022-01-12 18:19:50 +00:00
|
|
|
description = "WSGI object-dispatching web framework";
|
|
|
|
homepage = "https://www.pecanpy.org/";
|
|
|
|
license = licenses.bsd3;
|
2021-06-18 14:25:05 +00:00
|
|
|
maintainers = with maintainers; [ applePrincess ];
|
2017-08-09 04:33:54 +00:00
|
|
|
};
|
|
|
|
}
|