mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
f87a14534e
As of 1.5 pecan only supports sqlalchemy 2.0.
63 lines
1008 B
Nix
63 lines
1008 B
Nix
{ 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 ];
|
|
};
|
|
}
|