2017-12-23 20:03:44 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-08-24 22:43:57 -07:00
|
|
|
, cheroot, contextlib2, portend, routes, six
|
|
|
|
, setuptools_scm, zc_lockfile
|
2018-04-20 04:11:35 -07:00
|
|
|
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
|
2018-06-28 02:14:33 -07:00
|
|
|
, backports_functools_lru_cache, requests_toolbelt
|
2017-12-23 20:03:44 -08:00
|
|
|
}:
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CherryPy";
|
2018-11-04 02:34:55 -08:00
|
|
|
version = "18.0.1";
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 02:34:55 -08:00
|
|
|
sha256 = "3002fc47b982c3df4d08dbe5996b093fd73f85b650ab8df19e8b9b95f5c00520";
|
2017-09-05 02:16:41 -07:00
|
|
|
};
|
|
|
|
|
2018-08-24 22:43:57 -07:00
|
|
|
propagatedBuildInputs = [ cheroot contextlib2 portend routes six zc_lockfile ];
|
2017-09-05 02:16:41 -07:00
|
|
|
|
2017-12-23 20:03:44 -08:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-06-28 02:14:33 -07:00
|
|
|
checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt ];
|
2017-12-23 20:03:44 -08:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LANG=en_US.UTF-8 pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-09-05 02:16:41 -07:00
|
|
|
homepage = "http://www.cherrypy.org";
|
|
|
|
description = "A pythonic, object-oriented HTTP framework";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|