Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 40 lines 857 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy27 2, coverage 3, mock 4, pytest 5, pytestcov 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "gunicorn"; 11 version = "20.0.4"; 12 disabled = isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626"; 17 }; 18 19 propagatedBuildInputs = [ setuptools ]; 20 21 checkInputs = [ pytest mock pytestcov coverage ]; 22 23 prePatch = '' 24 substituteInPlace requirements_test.txt --replace "==" ">=" \ 25 --replace "coverage>=4.0,<4.4" "coverage" 26 ''; 27 28 # better than no tests 29 checkPhase = '' 30 $out/bin/gunicorn --help > /dev/null 31 ''; 32 33 pythonImportsCheck = [ "gunicorn" ]; 34 35 meta = with stdenv.lib; { 36 homepage = "https://github.com/benoitc/gunicorn"; 37 description = "WSGI HTTP Server for UNIX"; 38 license = licenses.mit; 39 }; 40}