1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, packaging 5, pythonOlder 6, eventlet 7, gevent 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "gunicorn"; 13 version = "21.2.0"; 14 format = "setuptools"; 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "benoitc"; 19 repo = "gunicorn"; 20 rev = version; 21 hash = "sha256-xP7NNKtz3KNrhcAc00ovLZRx2h6ZqHbwiFOpCiuwf98="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace "--cov=gunicorn --cov-report=xml" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 packaging 31 ]; 32 33 nativeCheckInputs = [ 34 eventlet 35 gevent 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "gunicorn" ]; 40 41 meta = with lib; { 42 homepage = "https://github.com/benoitc/gunicorn"; 43 description = "gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ ]; 46 }; 47}