1{ lib
2, python
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "tornado";
10 version = "6.2.0";
11
12 src = fetchFromGitHub {
13 owner = "tornadoweb";
14 repo = "tornado";
15 rev = "v${version}";
16 hash = "sha256-IV0QN3GqoclFo9kWJVc21arypmBkvUClo86Zmt/Gv6E=";
17 };
18
19 nativeCheckInputs = [
20 pytestCheckHook
21 ];
22
23 disabledTestPaths = [
24 # additional tests that have extra dependencies, run slowly, or produce more output than a simple pass/fail
25 # https://github.com/tornadoweb/tornado/blob/v6.2.0/maint/test/README
26 "maint/test"
27
28 # AttributeError: 'TestIOStreamWebMixin' object has no attribute 'io_loop'
29 "tornado/test/iostream_test.py"
30 ];
31
32 disabledTests = [
33 # Exception: did not get expected log message
34 "test_unix_socket_bad_request"
35 ];
36
37 pythonImportsCheck = [ "tornado" ];
38
39 __darwinAllowLocalNetworking = true;
40
41 meta = with lib; {
42 description = "A web framework and asynchronous networking library";
43 homepage = "https://www.tornadoweb.org/";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ SuperSandro2000 ];
46 };
47}