diff options
author | Martin Milata <martin@martinmilata.cz> | 2020-02-11 00:09:53 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-10 19:26:21 -0800 |
commit | b86f4d52cf83890cb8d2558cf7010efe90ef8323 (patch) | |
tree | 988fdb22bb00d896702384c5637d61765b5a1ed9 /pkgs/development/python-modules/gunicorn | |
parent | 524af32c15e5b389f630782b35085892ecb8c440 (diff) | |
download | nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar.gz nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar.bz2 nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar.lz nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar.xz nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.tar.zst nixlib-b86f4d52cf83890cb8d2558cf7010efe90ef8323.zip |
gunicorn: add 19.x branch for python2.7 support
The nixos/moinmoin module uses gunicorn, however the 20.0 version dropped python2 support which broke the module as there's no python3 port planned for moinmoin: http://moinmo.in/Python3
Diffstat (limited to 'pkgs/development/python-modules/gunicorn')
-rw-r--r-- | pkgs/development/python-modules/gunicorn/19.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gunicorn/19.nix b/pkgs/development/python-modules/gunicorn/19.nix new file mode 100644 index 000000000000..f9681eef97e3 --- /dev/null +++ b/pkgs/development/python-modules/gunicorn/19.nix @@ -0,0 +1,39 @@ +{ stdenv, buildPythonPackage, fetchPypi +, coverage +, mock +, pytest +, pytestcov +, setuptools +}: + +buildPythonPackage rec { + pname = "gunicorn"; + version = "19.10.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1080jk1ly8j0rc6lv8i33sj94rxjaskd1732cdq5chdqb3ij9ppr"; + }; + + propagatedBuildInputs = [ setuptools ]; + + checkInputs = [ pytest mock pytestcov coverage ]; + + prePatch = '' + substituteInPlace requirements_test.txt --replace "==" ">=" \ + --replace "coverage>=4.0,<4.4" "coverage" + ''; + + # better than no tests + checkPhase = '' + $out/bin/gunicorn --help > /dev/null + ''; + + pythonImportsCheck = [ "gunicorn" ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/benoitc/gunicorn"; + description = "WSGI HTTP Server for UNIX"; + license = licenses.mit; + }; +} |