Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 packaging, 11 12 # optional-dependencies 13 eventlet, 14 gevent, 15 tornado, 16 setproctitle, 17 18 pytestCheckHook, 19 pytest-cov-stub, 20}: 21 22buildPythonPackage rec { 23 pname = "gunicorn"; 24 version = "23.0.0"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "benoitc"; 29 repo = "gunicorn"; 30 tag = version; 31 hash = "sha256-Dq/mrQwo3II6DBvYfD1FHsKHaIlyHlJCZ+ZyrM4Efe0="; 32 }; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ packaging ]; 37 38 optional-dependencies = { 39 gevent = [ gevent ]; 40 eventlet = [ eventlet ]; 41 tornado = [ tornado ]; 42 gthread = [ ]; 43 setproctitle = [ setproctitle ]; 44 }; 45 46 pythonImportsCheck = [ "gunicorn" ]; 47 48 nativeCheckInputs = [ 49 pytestCheckHook 50 pytest-cov-stub 51 ] 52 ++ lib.concatAttrValues optional-dependencies; 53 54 meta = { 55 description = "WSGI HTTP Server for UNIX, fast clients and sleepy applications"; 56 homepage = "https://github.com/benoitc/gunicorn"; 57 changelog = "https://github.com/benoitc/gunicorn/releases/tag/${version}"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ getchoo ]; 60 mainProgram = "gunicorn"; 61 }; 62}