2017-12-24 04:03:44 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, cheroot, portend, routes, six
|
|
|
|
, setuptools_scm
|
|
|
|
, backports_unittest-mock, codecov, coverage, objgraph, pathpy, pytest, pytest-sugar, pytestcov
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "CherryPy";
|
2018-02-17 13:18:52 +00:00
|
|
|
version = "14.0.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:18:52 +00:00
|
|
|
sha256 = "5f5ee020d6547a8d452b3560775ca2374ffe2ff8c0aec1b272e93b6af80d850e";
|
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 ];
|
|
|
|
|
|
|
|
checkInputs = [ backports_unittest-mock codecov coverage objgraph pathpy pytest pytest-sugar pytestcov ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|