push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
aioquic,
cacert,
h11,
h2,
httpx,
priority,
trio,
uvloop,
wsproto,
poetry-core,
pytest-asyncio,
pytest-trio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "hypercorn";
version = "0.17.3";
pyproject = true;
disabled = pythonOlder "3.11"; # missing taskgroup dependency
src = fetchFromGitHub {
owner = "pgjones";
repo = "Hypercorn";
tag = version;
hash = "sha256-AtSMURz1rOr6VTQ7L2EQ4XZeKVEGTPXTbs3u7IhnZo8";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
'';
build-system = [ poetry-core ];
dependencies = [
h11
h2
priority
wsproto
];
optional-dependencies = {
h3 = [ aioquic ];
trio = [ trio ];
uvloop = [ uvloop ];
};
nativeCheckInputs = [
httpx
pytest-asyncio
pytest-trio
pytestCheckHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "hypercorn" ];
meta = with lib; {
changelog = "https://github.com/pgjones/hypercorn/blob/${src.tag}/CHANGELOG.rst";
homepage = "https://github.com/pgjones/hypercorn";
description = "ASGI web server inspired by Gunicorn";
mainProgram = "hypercorn";
license = licenses.mit;
maintainers = with maintainers; [ dgliwka ];
};
}