python313Packages.uvicorn-worker: init at 0.3.0
Uvicorn worker for Gunicorn https://github.com/Kludex/uvicorn-worker
This commit is contained in:
parent
17d12a7126
commit
e0fd0de587
52
pkgs/development/python-modules/uvicorn-worker/default.nix
Normal file
52
pkgs/development/python-modules/uvicorn-worker/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user