18 buildPythonPackage rec {
21 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 hash = "sha256-p0iPQE66RJfd811x6cnv7m3yvD/L9v7evBXlaIQSE0M=";
37 nativeBuildInputs = [ hatchling ];
39 propagatedBuildInputs = [
42 ] ++ lib.optionals (pythonOlder "3.11") [
46 passthru.optional-dependencies.standard = [
57 cp -R tests $testsout/tests
60 pythonImportsCheck = [
64 # check in passthru.tests.pytest to escape infinite recursion with httpx/httpcore
68 pytest = callPackage ./tests.nix { };
72 homepage = "https://www.uvicorn.org/";
73 changelog = "https://github.com/encode/uvicorn/blob/${src.rev}/CHANGELOG.md";
74 description = "The lightning-fast ASGI server";
75 mainProgram = "uvicorn";
76 license = licenses.bsd3;
77 maintainers = with maintainers; [ wd15 ];