2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "6.4.1";
|
|
|
|
pyproject = true;
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-vWiTLKL5gzrf3J6T3u8I1HHg5Ww0sf5ybSbZX6G3UXM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
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
|
2024-06-05 15:53:02 +00:00
|
|
|
urllib3
|
|
|
|
;
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
};
|
|
|
|
}
|