ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / hypercorn / default.nix
blob35a9f8f6bb85986d12a86eaaa49e391ab8a92baa
1 { lib
2 , buildPythonPackage
3 , fetchFromGitLab
4 , pythonOlder
5 , typing-extensions
6 , wsproto
7 , toml
8 , h2
9 , priority
10 , mock
11 , poetry-core
12 , pytest-asyncio
13 , pytest-cov
14 , pytest-sugar
15 , pytest-trio
16 , pytestCheckHook
19 buildPythonPackage rec {
20   pname = "Hypercorn";
21   version = "0.13.2";
22   disabled = pythonOlder "3.7";
23   format = "pyproject";
25   src = fetchFromGitLab {
26     owner = "pgjones";
27     repo = pname;
28     rev = version;
29     sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ=";
30   };
32   nativeBuildInputs = [
33     poetry-core
34   ];
36   propagatedBuildInputs = [ wsproto toml h2 priority ]
37     ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
39   checkInputs = [
40     pytest-asyncio
41     pytest-cov
42     pytest-sugar
43     pytest-trio
44     pytestCheckHook
45   ] ++ lib.optionals (pythonOlder "3.8") [ mock ];
47   pytestFlagsArray = [
48     "--asyncio-mode=legacy"
49   ];
51   pythonImportsCheck = [ "hypercorn" ];
53   meta = with lib; {
54     homepage = "https://pgjones.gitlab.io/hypercorn/";
55     description = "The ASGI web server inspired by Gunicorn";
56     license = licenses.mit;
57     maintainers = with maintainers; [ dgliwka ];
58   };