python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / tornado / 5.nix
bloba1b0d8979e2083c3fea3afc0b18907161c2085a9
2   lib,
3   unittestCheckHook,
4   buildPythonPackage,
5   fetchPypi,
6   fetchpatch,
7   isPy27,
8   pythonAtLeast,
9 }:
11 buildPythonPackage rec {
12   pname = "tornado";
13   version = "5.1.1";
14   disabled = isPy27 || pythonAtLeast "3.10";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409";
19   };
21   patches = [
22     (fetchpatch {
23       name = "CVE-2023-28370.patch";
24       url = "https://github.com/tornadoweb/tornado/commit/32ad07c54e607839273b4e1819c347f5c8976b2f.patch";
25       hash = "sha256-2dpPHkNThOaZD8T2g1vb/I5WYZ/vy/t690539uprJyc=";
26     })
27   ];
29   nativeCheckInputs = [ unittestCheckHook ];
31   # We specify the name of the test files to prevent
32   # https://github.com/NixOS/nixpkgs/issues/14634
33   unittestFlagsArray = [ "*_test.py" ];
35   __darwinAllowLocalNetworking = true;
37   meta = {
38     description = "Web framework and asynchronous networking library";
39     homepage = "https://www.tornadoweb.org/";
40     license = lib.licenses.asl20;
41   };