2017-07-28 16:47:39 +02:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, backports_abc
|
|
|
|
, backports_ssl_match_hostname
|
|
|
|
, certifi
|
|
|
|
, singledispatch
|
2018-01-24 14:00:42 +01:00
|
|
|
, pythonOlder
|
2017-07-28 16:47:39 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tornado";
|
2018-01-07 09:01:34 +01:00
|
|
|
version = "4.5.3";
|
2017-07-28 16:47:39 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2018-01-24 14:00:42 +01:00
|
|
|
propagatedBuildInputs = [ backports_abc certifi singledispatch ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") backports_ssl_match_hostname;
|
2017-07-28 16:47:39 +02:00
|
|
|
|
|
|
|
# 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;
|
2018-01-07 09:01:34 +01:00
|
|
|
sha256 = "6d14e47eab0e15799cf3cdcc86b0b98279da68522caace2bd7ce644287685f0a";
|
2017-07-28 16:47:39 +02:00
|
|
|
};
|
|
|
|
}
|