1{ lib
2, python
3, buildPythonPackage
4, fetchPypi
5, backports_abc
6, backports_ssl_match_hostname
7, certifi
8, singledispatch
9}:
10
11buildPythonPackage rec {
12 pname = "tornado";
13 version = "4.5.1";
14 name = "${pname}-${version}";
15
16 propagatedBuildInputs = [ backports_abc backports_ssl_match_hostname certifi singledispatch ];
17
18 # We specify the name of the test files to prevent
19 # https://github.com/NixOS/nixpkgs/issues/14634
20 checkPhase = ''
21 ${python.interpreter} -m unittest discover *_test.py
22 '';
23
24 src = fetchPypi {
25 inherit pname version;
26 sha256 = "db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd";
27 };
28}