pythonPackages.hypercorn: init at 0.11.2
This commit is contained in:
parent
b5188025c1
commit
8544200f46
2 changed files with 51 additions and 0 deletions
49
pkgs/development/python-modules/hypercorn/default.nix
Normal file
49
pkgs/development/python-modules/hypercorn/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitLab
|
||||||
|
, pythonOlder
|
||||||
|
, typing-extensions
|
||||||
|
, wsproto
|
||||||
|
, toml
|
||||||
|
, h2
|
||||||
|
, priority
|
||||||
|
, mock
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-cov
|
||||||
|
, pytest-sugar
|
||||||
|
, pytest-trio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "Hypercorn";
|
||||||
|
version = "0.11.2";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "pgjones";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0v80v6l2xqac5mgrmh2im7y23wpvz4yc2v4h9ryhvl88c2jk9mvh";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ wsproto toml h2 priority ]
|
||||||
|
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-cov
|
||||||
|
pytest-sugar
|
||||||
|
pytest-trio
|
||||||
|
pytestCheckHook
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [ mock ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "hypercorn" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://pgjones.gitlab.io/hypercorn/";
|
||||||
|
description = "The ASGI web server inspired by Gunicorn";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dgliwka ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3390,6 +3390,8 @@ in {
|
||||||
|
|
||||||
hypchat = callPackage ../development/python-modules/hypchat { };
|
hypchat = callPackage ../development/python-modules/hypchat { };
|
||||||
|
|
||||||
|
hypercorn = callPackage ../development/python-modules/hypercorn { };
|
||||||
|
|
||||||
hyperframe = callPackage ../development/python-modules/hyperframe { };
|
hyperframe = callPackage ../development/python-modules/hyperframe { };
|
||||||
|
|
||||||
hyperion-py = callPackage ../development/python-modules/hyperion-py { };
|
hyperion-py = callPackage ../development/python-modules/hyperion-py { };
|
||||||
|
|
Loading…
Reference in a new issue