2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
2017-12-24 04:00:12 +00:00
|
|
|
, more-itertools, six
|
2018-04-20 12:08:45 +01:00
|
|
|
, pytest, pytestcov, portend
|
2017-09-05 10:16:41 +01:00
|
|
|
, 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 ];
|
|
|
|
|
2018-04-20 12:08:45 +01:00
|
|
|
checkInputs = [ pytest pytestcov 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;
|
|
|
|
};
|
|
|
|
}
|