2017-12-24 05:03:44 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, cheroot, portend, routes, six
|
|
|
|
, setuptools_scm
|
|
|
|
, backports_unittest-mock, codecov, coverage, objgraph, pathpy, pytest, pytest-sugar, pytestcov
|
|
|
|
}:
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "CherryPy";
|
2018-04-04 20:03:27 +02:00
|
|
|
version = "14.0.1";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:03:27 +02:00
|
|
|
sha256 = "721d09bbeedaf5b3493e9e644ae9285d776ea7f16b1d4a0a5aaec7c0d22e5074";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2017-12-24 05:03:44 +01:00
|
|
|
propagatedBuildInputs = [ cheroot portend routes six ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2017-12-24 05:03:44 +01: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 11:16:41 +02:00
|
|
|
homepage = "http://www.cherrypy.org";
|
|
|
|
description = "A pythonic, object-oriented HTTP framework";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|