From ea829cff7569de8704cf46b861f317b64a6ba354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 23 Mar 2022 09:32:36 +0100 Subject: [PATCH] python39Packages.tornado: enable tests, add SuperSandro2000 as maintainer --- .../python-modules/tornado/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/tornado/default.nix b/pkgs/development/python-modules/tornado/default.nix index 893943cbc720..4519641c4820 100644 --- a/pkgs/development/python-modules/tornado/default.nix +++ b/pkgs/development/python-modules/tornado/default.nix @@ -2,28 +2,34 @@ , python , buildPythonPackage , fetchPypi +, pycares +, pycurl +, twisted }: buildPythonPackage rec { pname = "tornado"; version = "6.1"; - # We specify the name of the test files to prevent - # https://github.com/NixOS/nixpkgs/issues/14634 - checkPhase = '' - ${python.interpreter} -m unittest discover *_test.py - ''; - src = fetchPypi { inherit pname version; sha256 = "33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791"; }; + checkInputs = [ + pycares + pycurl + twisted + ]; + + pythonImportsCheck = [ "tornado" ]; + __darwinAllowLocalNetworking = true; - meta = { + meta = with lib; { description = "A web framework and asynchronous networking library"; homepage = "https://www.tornadoweb.org/"; - license = lib.licenses.asl20; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }