14910f5943
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
60 lines
972 B
Nix
60 lines
972 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, logutils
|
|
, Mako
|
|
, webtest
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, genshi
|
|
, gunicorn
|
|
, jinja2
|
|
, six
|
|
, sqlalchemy
|
|
, virtualenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pecan";
|
|
version = "1.4.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-LL0O7btXR8BM3xjEquTxxunZUPOvcK8lRLB09+16BIA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
logutils
|
|
Mako
|
|
webtest
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
genshi
|
|
gunicorn
|
|
jinja2
|
|
sqlalchemy
|
|
virtualenv
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--pyargs pecan"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pecan"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
|
description = "WSGI object-dispatching web framework";
|
|
homepage = "https://www.pecanpy.org/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ applePrincess ];
|
|
};
|
|
}
|