1{ lib 2, unittestCheckHook 3, buildPythonPackage 4, fetchPypi 5, isPy27 6, pythonAtLeast 7}: 8 9buildPythonPackage rec { 10 pname = "tornado"; 11 version = "4.5.3"; 12 disabled = isPy27 || pythonAtLeast "3.10"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d"; 17 }; 18 19 checkInputs = [ unittestCheckHook ]; 20 21 # We specify the name of the test files to prevent 22 # https://github.com/NixOS/nixpkgs/issues/14634 23 unittestFlagsArray = [ "*_test.py" ]; 24 25 __darwinAllowLocalNetworking = true; 26 27 meta = { 28 description = "A web framework and asynchronous networking library"; 29 homepage = "https://www.tornadoweb.org/"; 30 license = lib.licenses.asl20; 31 }; 32}