about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cheroot/default.nix
blob: d1ecfcc5c89ce12dd12b3abffbb009cf508b2d30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchPypi, buildPythonPackage
, more-itertools, six
, coverage, codecov, pytest, pytestcov, pytest-sugar, portend
, backports_unittest-mock, setuptools_scm }:

buildPythonPackage rec {
  pname = "cheroot";
  version = "6.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "10s67wxymk4xg45l7ca59n4l6m6rnj8b9l52pg1angxh958lwixs";
  };

  propagatedBuildInputs = [ more-itertools six ];

  buildInputs = [ setuptools_scm ];

  checkInputs = [ coverage codecov pytest pytestcov pytest-sugar portend backports_unittest-mock  ];

  checkPhase = ''
    py.test cheroot
  '';

  meta = with stdenv.lib; {
    description = "High-performance, pure-Python HTTP";
    homepage = https://github.com/cherrypy/cheroot;
    license = licenses.mit;
  };
}