Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / tornado / 5.nix
blob8ba3a8c073ba26c2ad2243b5e34986f02dc8955e
1 { lib
2 , unittestCheckHook
3 , buildPythonPackage
4 , fetchPypi
5 , fetchpatch
6 , isPy27
7 , pythonAtLeast
8 }:
10 buildPythonPackage rec {
11   pname = "tornado";
12   version = "5.1.1";
13   disabled = isPy27 || pythonAtLeast "3.10";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409";
18   };
20   patches = [
21     (fetchpatch {
22       name = "CVE-2023-28370.patch";
23       url = "https://github.com/tornadoweb/tornado/commit/32ad07c54e607839273b4e1819c347f5c8976b2f.patch";
24       hash = "sha256-2dpPHkNThOaZD8T2g1vb/I5WYZ/vy/t690539uprJyc=";
25     })
26   ];
28   nativeCheckInputs = [ unittestCheckHook ];
30   # We specify the name of the test files to prevent
31   # https://github.com/NixOS/nixpkgs/issues/14634
32   unittestFlagsArray = [ "*_test.py" ];
34   __darwinAllowLocalNetworking = true;
36   meta = {
37     description = "A web framework and asynchronous networking library";
38     homepage = "https://www.tornadoweb.org/";
39     license = lib.licenses.asl20;
40   };