19 buildPythonPackage rec {
22 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
29 rev = "refs/tags/${version}";
30 hash = "sha256-LTioJNDq1zsy/FO6lBgRW8Ow5qyxUD8NjNCj4nIrVDM=";
38 build-system = [ hatchling ];
43 ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
45 optional-dependencies.standard = [
56 cp -R tests $testsout/tests
59 pythonImportsCheck = [ "uvicorn" ];
61 # check in passthru.tests.pytest to escape infinite recursion with httpx/httpcore
65 pytest = callPackage ./tests.nix { };
69 homepage = "https://www.uvicorn.org/";
70 changelog = "https://github.com/encode/uvicorn/blob/${src.rev}/CHANGELOG.md";
71 description = "Lightning-fast ASGI server";
72 mainProgram = "uvicorn";
73 license = licenses.bsd3;
74 maintainers = with maintainers; [ wd15 ];