2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
2023-03-15 16:39:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, distributed
|
|
|
|
, jupyter-server
|
|
|
|
, jupyterlab
|
|
|
|
, matplotlib
|
|
|
|
, mitmproxy
|
|
|
|
, pytest-tornado
|
|
|
|
, pytest-tornasync
|
|
|
|
, pyzmq
|
|
|
|
, sockjs-tornado
|
|
|
|
, urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tornado";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "6.3.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
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}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-l9Ce/c2wDSmsySr9yXu5Fl/+63QkQay46aDSUTJmetA=";
|
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;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit
|
|
|
|
distributed
|
|
|
|
jupyter-server
|
|
|
|
jupyterlab
|
|
|
|
matplotlib
|
|
|
|
mitmproxy
|
|
|
|
pytest-tornado
|
|
|
|
pytest-tornasync
|
|
|
|
pyzmq
|
|
|
|
sockjs-tornado
|
|
|
|
urllib3;
|
|
|
|
};
|
|
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|