Commit e0fd0de5 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.uvicorn-worker: init at 0.3.0

Uvicorn worker for Gunicorn

https://github.com/Kludex/uvicorn-worker
parent 17d12a71
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };