summary refs log tree commit diff
path: root/pkgs/development/python-modules/tornado/default.nix
blob: 11078eb8562371f1721c3ca793062a9e180ac584 (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
{ lib
, python
, buildPythonPackage
, fetchPypi
, backports_abc
, backports_ssl_match_hostname
, certifi
, singledispatch
}:

buildPythonPackage rec {
  pname = "tornado";
  version = "4.5.1";
  name = "${pname}-${version}";

  propagatedBuildInputs = [ backports_abc backports_ssl_match_hostname certifi singledispatch ];

  # We specify the name of the test files to prevent
  # https://github.com/NixOS/nixpkgs/issues/14634
  checkPhase = ''
    ${python.interpreter} -m unittest discover *_test.py
  '';

  src = fetchPypi {
    inherit pname version;
    sha256 = "db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd";
  };
}