mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
d45ea33a85
* Update Homepage * Add Changelog * Convert to pytestCheckHook * Remove buildInputs, corrected to propagatedBuildInputs or checkInputs as appropriate. This caused downstream failures because some required packages were not in the runtime closure (PYTHONPATH).
60 lines
912 B
Nix
60 lines
912 B
Nix
{ stdenv
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, isPy27
|
|
# Python deps
|
|
, logutils
|
|
, Mako
|
|
, singledispatch
|
|
, six
|
|
, webtest
|
|
# Test Inputs
|
|
, pytestCheckHook
|
|
, genshi
|
|
, gunicorn
|
|
, jinja2
|
|
, Kajiki
|
|
, mock
|
|
, sqlalchemy
|
|
, uwsgi
|
|
, virtualenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pecan";
|
|
version = "1.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
logutils
|
|
Mako
|
|
singledispatch
|
|
six
|
|
webtest
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
genshi
|
|
gunicorn
|
|
jinja2
|
|
mock
|
|
sqlalchemy
|
|
virtualenv
|
|
] ++ stdenv.lib.optionals isPy27 [ Kajiki ];
|
|
|
|
pytestFlagsArray = [
|
|
"--pyargs pecan "
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Pecan";
|
|
homepage = "http://www.pecanpy.org/";
|
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
|
};
|
|
}
|