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 { };