depot/third_party/nixpkgs/pkgs/development/python-modules/pecan/default.nix

60 lines
1,013 B
Nix
Raw Normal View History

{
lib,
fetchPypi,
buildPythonPackage,
logutils,
mako,
webob,
webtest,
pythonOlder,
pytestCheckHook,
genshi,
gunicorn,
jinja2,
sqlalchemy,
virtualenv,
setuptools,
}:
buildPythonPackage rec {
pname = "pecan";
version = "1.5.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-YGMnLV+GB3P7tLSyrhsJ2oyVQGLvhxFQwGz9sjkdk1U=";
};
propagatedBuildInputs = [
logutils
mako
webob
setuptools
];
nativeCheckInputs = [
pytestCheckHook
genshi
gunicorn
jinja2
sqlalchemy
virtualenv
webtest
];
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 ];
};
}