2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-08-09 04:33:54 +00:00
|
|
|
, fetchPypi
|
2021-06-18 14:25:05 +00:00
|
|
|
, fetchpatch
|
2017-08-09 04:33:54 +00:00
|
|
|
, buildPythonPackage
|
2020-09-20 20:29:33 +00:00
|
|
|
, isPy27
|
2017-08-09 04:33:54 +00:00
|
|
|
# Python deps
|
|
|
|
, logutils
|
|
|
|
, Mako
|
2021-03-25 07:39:12 +00:00
|
|
|
, singledispatch ? null
|
2020-09-20 20:29:33 +00:00
|
|
|
, six
|
|
|
|
, webtest
|
|
|
|
# Test Inputs
|
|
|
|
, pytestCheckHook
|
2017-08-09 04:33:54 +00:00
|
|
|
, genshi
|
|
|
|
, gunicorn
|
|
|
|
, jinja2
|
2020-09-20 20:29:33 +00:00
|
|
|
, Kajiki
|
2019-01-02 18:40:35 +00:00
|
|
|
, mock
|
2020-09-20 20:29:33 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, virtualenv
|
2017-08-09 04:33:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pecan";
|
2020-09-20 20:29:33 +00:00
|
|
|
version = "1.4.0";
|
2017-08-09 04:33:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-20 20:29:33 +00:00
|
|
|
sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
|
2017-08-09 04:33:54 +00:00
|
|
|
};
|
|
|
|
|
2021-06-18 14:25:05 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "Support-SQLAlchemy-1.4x.patch";
|
|
|
|
url = "https://github.com/pecan/pecan/commit/a520bd544c0b02a02dbf692b8d6e2f7a503ee6d4.patch";
|
|
|
|
sha256 = "sha256-QCHRjwnpy8ndCvcuyE5Y65BybKYthJXDySUtmpJD8gY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-09-20 20:29:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
logutils
|
|
|
|
Mako
|
|
|
|
singledispatch
|
|
|
|
six
|
|
|
|
webtest
|
2017-08-09 04:33:54 +00:00
|
|
|
];
|
|
|
|
|
2020-09-20 20:29:33 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
genshi
|
|
|
|
gunicorn
|
|
|
|
jinja2
|
|
|
|
mock
|
|
|
|
sqlalchemy
|
|
|
|
virtualenv
|
2021-01-24 00:29:22 +00:00
|
|
|
] ++ lib.optionals isPy27 [ Kajiki ];
|
2020-09-20 20:29:33 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--pyargs pecan "
|
|
|
|
];
|
2019-01-02 18:40:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-18 14:25:05 +00:00
|
|
|
description = "WSGI object-dispatching web framework, designed to be lean and fast";
|
|
|
|
homepage = "https://www.pecanpy.org/";
|
2020-09-20 20:29:33 +00:00
|
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
2021-06-18 14:25:05 +00:00
|
|
|
maintainers = with maintainers; [ applePrincess ];
|
2017-08-09 04:33:54 +00:00
|
|
|
};
|
|
|
|
}
|