2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
2017-12-24 04:00:12 +00:00
|
|
|
, more-itertools, six
|
2017-09-05 10:16:41 +01:00
|
|
|
, coverage, codecov, pytest, pytestcov, pytest-sugar, portend
|
|
|
|
, backports_unittest-mock, setuptools_scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cheroot";
|
2017-12-24 04:00:12 +00:00
|
|
|
version = "6.0.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-24 04:00:12 +00:00
|
|
|
sha256 = "10s67wxymk4xg45l7ca59n4l6m6rnj8b9l52pg1angxh958lwixs";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2017-12-24 04:00:12 +00:00
|
|
|
propagatedBuildInputs = [ more-itertools six ];
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
checkInputs = [ coverage codecov pytest pytestcov pytest-sugar portend backports_unittest-mock ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test cheroot
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "High-performance, pure-Python HTTP";
|
|
|
|
homepage = https://github.com/cherrypy/cheroot;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|