2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2020-07-18 16:06:22 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2022-09-09 14:08:57 +00:00
|
|
|
, pythonAtLeast
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tornado";
|
|
|
|
version = "4.5.3";
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = isPy27 || pythonAtLeast "3.10";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d";
|
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
|
|
|
|
|
|
|
# We specify the name of the test files to prevent
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/14634
|
|
|
|
unittestFlagsArray = [ "*_test.py" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web framework and asynchronous networking library";
|
|
|
|
homepage = "https://www.tornadoweb.org/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|