1{ lib, buildPythonPackage, fetchPypi
2, cheroot, portend, routes, six
3, setuptools_scm
4, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
5}:
6
7buildPythonPackage rec {
8 pname = "CherryPy";
9 version = "14.0.1";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "721d09bbeedaf5b3493e9e644ae9285d776ea7f16b1d4a0a5aaec7c0d22e5074";
14 };
15
16 propagatedBuildInputs = [ cheroot portend routes six ];
17
18 buildInputs = [ setuptools_scm ];
19
20 checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov ];
21
22 checkPhase = ''
23 LANG=en_US.UTF-8 pytest
24 '';
25
26 meta = with lib; {
27 homepage = "http://www.cherrypy.org";
28 description = "A pythonic, object-oriented HTTP framework";
29 license = licenses.bsd3;
30 };
31}