mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
https://www.tornadoweb.org/en/stable/releases/v6.5.5.html
https://www.tornadoweb.org/en/stable/releases/v6.5.6.html
https://www.tornadoweb.org/en/stable/releases/v6.5.7.html
Fixes: CVE-2026-49853, CVE-2026-49855, CVE-2026-49854
(cherry picked from commit 75e6236ca1)
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
|
|
# for passthru.tests
|
|
distributed,
|
|
jupyter-server,
|
|
jupyterlab,
|
|
matplotlib,
|
|
mitmproxy,
|
|
pytest-tornado,
|
|
pytest-tornasync,
|
|
pyzmq,
|
|
sockjs-tornado,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "tornado";
|
|
version = "6.5.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tornadoweb";
|
|
repo = "tornado";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-iE0Tf95zmPoZJhw7FDLzTmv8HaWds3ZU5xzZSMvxFH4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# To allow tests to pass on slower/high-load machines
|
|
env.ASYNC_TEST_TIMEOUT = 30;
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "tornado" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
passthru.tests = {
|
|
inherit
|
|
distributed
|
|
jupyter-server
|
|
jupyterlab
|
|
matplotlib
|
|
mitmproxy
|
|
pytest-tornado
|
|
pytest-tornasync
|
|
pyzmq
|
|
sockjs-tornado
|
|
urllib3
|
|
;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://www.tornadoweb.org/en/stable/releases/${finalAttrs.src.tag}.html";
|
|
description = "Web framework and asynchronous networking library";
|
|
homepage = "https://www.tornadoweb.org/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
})
|