2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2022-04-15 01:41:22 +00:00
|
|
|
, pythonAtLeast
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tornado";
|
|
|
|
version = "5.1.1";
|
2022-04-15 01:41:22 +00:00
|
|
|
disabled = isPy27 || pythonAtLeast "3.10";
|
2020-07-18 16:06:22 +00: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;
|
|
|
|
sha256 = "4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409";
|
|
|
|
};
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web framework and asynchronous networking library";
|
|
|
|
homepage = "https://www.tornadoweb.org/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|