Merge pull request #165408 from SuperSandro2000/tornado

This commit is contained in:
Sandro
2022-03-27 20:07:36 +02:00
committed by GitHub
@@ -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 ];
};
}