1{ lib
2, python
3, buildPythonPackage
4, fetchPypi
5}:
6
7buildPythonPackage rec {
8 pname = "tornado";
9 version = "6.1";
10
11 # We specify the name of the test files to prevent
12 # https://github.com/NixOS/nixpkgs/issues/14634
13 checkPhase = ''
14 ${python.interpreter} -m unittest discover *_test.py
15 '';
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791";
20 };
21
22 __darwinAllowLocalNetworking = true;
23
24 meta = {
25 description = "A web framework and asynchronous networking library";
26 homepage = "https://www.tornadoweb.org/";
27 license = lib.licenses.asl20;
28 };
29}