summary refs log tree commit diff
path: root/pkgs/development/python-modules/cheroot/default.nix
blob: 7aa01623b085764ebe301bc14aec238895c2e43b (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
, pytest, pytestcov, 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 = [ pytest pytestcov 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;
  };
}