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