nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 55 lines 1.1 kB view raw
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 17}: 18 19buildPythonPackage rec { 20 pname = "Hypercorn"; 21 version = "0.13.2"; 22 disabled = pythonOlder "3.7"; 23 format = "pyproject"; 24 25 src = fetchFromGitLab { 26 owner = "pgjones"; 27 repo = pname; 28 rev = version; 29 sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ="; 30 }; 31 32 nativeBuildInputs = [ 33 poetry-core 34 ]; 35 36 propagatedBuildInputs = [ wsproto toml h2 priority ] 37 ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; 38 39 checkInputs = [ 40 pytest-asyncio 41 pytest-cov 42 pytest-sugar 43 pytest-trio 44 pytestCheckHook 45 ] ++ lib.optionals (pythonOlder "3.8") [ mock ]; 46 47 pythonImportsCheck = [ "hypercorn" ]; 48 49 meta = with lib; { 50 homepage = "https://pgjones.gitlab.io/hypercorn/"; 51 description = "The ASGI web server inspired by Gunicorn"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ dgliwka ]; 54 }; 55}