2019-07-21 10:26:00 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-03-27 14:07:06 +00:00
|
|
|
, setuptools_scm
|
|
|
|
, cheroot, contextlib2, portend, routes, six, zc_lockfile
|
|
|
|
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov, backports_functools_lru_cache, requests_toolbelt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cherrypy";
|
2019-07-21 10:26:00 +01:00
|
|
|
version = "17.4.2";
|
2019-03-27 14:07:06 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "CherryPy";
|
|
|
|
inherit version;
|
2019-07-21 10:26:00 +01:00
|
|
|
sha256 = "ef1619ad161f526745d4f0e4e517753d9d985814f1280e330661333d2ba05cdf";
|
2019-03-27 14:07:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cheroot contextlib2 portend routes six zc_lockfile
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-21 10:26:00 +01:00
|
|
|
pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"}
|
2019-03-27 14:07:06 +00:00
|
|
|
'';
|
|
|
|
|
2019-07-21 10:26:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.cherrypy.org";
|
2019-03-27 14:07:06 +00:00
|
|
|
description = "A pythonic, object-oriented HTTP framework";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|