mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 11:56:33 +01:00
Conflicts: pkgs/development/python-modules/bundlewrap/default.nix pkgs/development/python-modules/coverage/default.nix pkgs/development/python-modules/h5netcdf/default.nix pkgs/development/python-modules/hypothesis/default.nix pkgs/development/python-modules/numba/default.nix pkgs/development/python-modules/optype/default.nix pkgs/development/python-modules/setuptools-git-versioning/default.nix pkgs/development/python-modules/sphinx/default.nix
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
aioquic,
|
|
h11,
|
|
h2,
|
|
httpx,
|
|
priority,
|
|
trio,
|
|
uvloop,
|
|
wsproto,
|
|
pdm-backend,
|
|
pytest-asyncio,
|
|
pytest-trio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hypercorn";
|
|
version = "0.18.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgjones";
|
|
repo = "Hypercorn";
|
|
tag = version;
|
|
hash = "sha256-RNurpDq5Z3N9Wv9Hq/l6A3yKUriCCKx9BrbrWGwBsUk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/^addopts/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
h11
|
|
h2
|
|
priority
|
|
wsproto
|
|
];
|
|
|
|
optional-dependencies = {
|
|
h3 = [ aioquic ];
|
|
trio = [ trio ];
|
|
uvloop = [ uvloop ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
httpx
|
|
pytest-asyncio
|
|
pytest-trio
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "hypercorn" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dgliwka ];
|
|
};
|
|
}
|