python313Packages.uvicorn-worker: init at 0.3.0

Uvicorn worker for Gunicorn

https://github.com/Kludex/uvicorn-worker
This commit is contained in:
Fabian Affolter 2025-08-08 19:39:53 +02:00
parent 17d12a7126
commit e0fd0de587
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
gunicorn,
hatchling,
httpx,
pytestCheckHook,
trustme,
uvicorn,
}:
buildPythonPackage rec {
pname = "uvicorn-worker";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Kludex";
repo = "uvicorn-worker";
tag = version;
hash = "sha256-a5L4H1Bym5Dx9/pGL/Vz6ZO699t/1Wmc1ExIb0t/ISc=";
};
build-system = [ hatchling ];
dependencies = [
gunicorn
uvicorn
];
nativeCheckInputs = [
gunicorn
httpx
pytestCheckHook
trustme
];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
pythonImportsCheck = [ "uvicorn_worker" ];
meta = {
description = "Uvicorn worker for Gunicorn";
homepage = "https://github.com/Kludex/uvicorn-worker";
changelog = "https://github.com/Kludex/uvicorn-worker/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -19260,6 +19260,8 @@ self: super: with self; {
uvicorn = callPackage ../development/python-modules/uvicorn { };
uvicorn-worker = callPackage ../development/python-modules/uvicorn-worker { };
uvloop = callPackage ../development/python-modules/uvloop { };
uwsgi-chunked = callPackage ../development/python-modules/uwsgi-chunked { };