2018-12-19 16:10:07 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
2018-08-25 06:43:57 +01:00
|
|
|
, cheroot, contextlib2, portend, routes, six
|
|
|
|
, setuptools_scm, zc_lockfile
|
2018-04-20 12:11:35 +01:00
|
|
|
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
|
2018-06-28 10:14:33 +01:00
|
|
|
, backports_functools_lru_cache, requests_toolbelt
|
2017-12-24 04:03:44 +00:00
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2019-01-02 18:31:14 +00:00
|
|
|
let
|
|
|
|
srcInfo = if isPy3k then {
|
|
|
|
version = "18.0.1";
|
|
|
|
sha256 = "3002fc47b982c3df4d08dbe5996b093fd73f85b650ab8df19e8b9b95f5c00520";
|
|
|
|
} else {
|
|
|
|
version = "17.4.1";
|
|
|
|
sha256 = "1kl17anzz535jgkn9qcy0c2m0zlafph0iv7ph3bb9mfrs2bgvagv";
|
|
|
|
};
|
|
|
|
in buildPythonPackage rec {
|
2017-09-05 10:16:41 +01:00
|
|
|
pname = "CherryPy";
|
2019-01-02 18:31:14 +00:00
|
|
|
inherit (srcInfo) version;
|
2018-12-19 16:10:07 +00:00
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
src = fetchPypi {
|
2019-01-02 18:31:14 +00:00
|
|
|
inherit pname;
|
|
|
|
inherit (srcInfo) version sha256;
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2018-08-25 06:43:57 +01:00
|
|
|
propagatedBuildInputs = [ cheroot contextlib2 portend routes six zc_lockfile ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2017-12-24 04:03:44 +00:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-06-28 10:14:33 +01:00
|
|
|
checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt ];
|
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;
|
|
|
|
};
|
|
|
|
}
|