2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
2023-03-15 16:39:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tornado";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "6.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tornadoweb";
|
|
|
|
repo = "tornado";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-IV0QN3GqoclFo9kWJVc21arypmBkvUClo86Zmt/Gv6E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# additional tests that have extra dependencies, run slowly, or produce more output than a simple pass/fail
|
|
|
|
# https://github.com/tornadoweb/tornado/blob/v6.2.0/maint/test/README
|
|
|
|
"maint/test"
|
|
|
|
|
|
|
|
# AttributeError: 'TestIOStreamWebMixin' object has no attribute 'io_loop'
|
|
|
|
"tornado/test/iostream_test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Exception: did not get expected log message
|
|
|
|
"test_unix_socket_bad_request"
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "tornado" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A web framework and asynchronous networking library";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://www.tornadoweb.org/";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|