From 31554915a4b98143dba9c306d3c7cb5f817843aa Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Fri, 24 Aug 2018 18:02:10 +1000 Subject: [PATCH] pythonPackages.bjoern: init at 2.2.2 --- .../python-modules/bjoern/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/bjoern/default.nix diff --git a/pkgs/development/python-modules/bjoern/default.nix b/pkgs/development/python-modules/bjoern/default.nix new file mode 100644 index 000000000000..22243edea9e3 --- /dev/null +++ b/pkgs/development/python-modules/bjoern/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, libev, python }: + +buildPythonPackage rec { + pname = "bjoern"; + version = "2.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1w5z9agacci4shmkg9gh46ifj2a724rrgbykdv14830f7jq3dcmi"; + }; + + buildInputs = [ libev ]; + + checkPhase = '' + ${python.interpreter} tests/keep-alive-behaviour.py 2>/dev/null + ${python.interpreter} tests/test_wsgi_compliance.py + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/jonashaag/bjoern; + description = "A screamingly fast Python 2/3 WSGI server written in C"; + license = licenses.bsd2; + maintainers = with maintainers; [ cmcdragonkai ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 611e97e69780..03e2dffe7274 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16935,6 +16935,8 @@ EOF black = callPackage ../development/python-modules/black { }; + bjoern = callPackage ../development/python-modules/bjoern { }; + autobahn = callPackage ../development/python-modules/autobahn { }; jsonref = callPackage ../development/python-modules/jsonref { };