Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, unittestCheckHook 3, buildPythonPackage 4, fetchPypi 5, isPy27 6, pythonAtLeast 7}: 8 9buildPythonPackage rec { 10 pname = "tornado"; 11 version = "5.1.1"; 12 disabled = isPy27 || pythonAtLeast "3.10"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409"; 17 }; 18 19 nativeCheckInputs = [ 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}