2017-12-24 04:03:44 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, cheroot, portend, routes, six
|
|
|
|
, setuptools_scm
|
2018-04-20 12:11:35 +01:00
|
|
|
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
|
2017-12-24 04:03:44 +00:00
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CherryPy";
|
2018-06-12 17:46:59 +01:00
|
|
|
version = "15.0.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:46:59 +01:00
|
|
|
sha256 = "7404638da9cf8c6be672505168ccb63e16d33cb3aa16a02ec30a44641f7546af";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2017-12-24 04:03:44 +00:00
|
|
|
propagatedBuildInputs = [ cheroot portend routes six ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2017-12-24 04:03:44 +00:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-04-20 12:11:35 +01:00
|
|
|
checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov ];
|
2017-12-24 04:03:44 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LANG=en_US.UTF-8 pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01:00
|
|
|
homepage = "http://www.cherrypy.org";
|
|
|
|
description = "A pythonic, object-oriented HTTP framework";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|