diff options
Diffstat (limited to 'pkgs/development/python-modules/uvicorn/default.nix')
-rw-r--r-- | pkgs/development/python-modules/uvicorn/default.nix | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/uvicorn/default.nix b/pkgs/development/python-modules/uvicorn/default.nix index 6201bb6157266..09a1ecdaaf223 100644 --- a/pkgs/development/python-modules/uvicorn/default.nix +++ b/pkgs/development/python-modules/uvicorn/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, click -, h11 -, httptools -, python-dotenv -, pyyaml -, typing-extensions -, uvloop -, watchfiles -, websockets -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + click, + h11, + httptools, + python-dotenv, + pyyaml, + typing-extensions, + uvloop, + watchfiles, + websockets, + hatchling, + pythonOlder, }: buildPythonPackage rec { pname = "uvicorn"; - version = "0.27.1"; + version = "0.29.0"; disabled = pythonOlder "3.8"; pyproject = true; src = fetchFromGitHub { owner = "encode"; - repo = pname; + repo = "uvicorn"; rev = "refs/tags/${version}"; - hash = "sha256-p0iPQE66RJfd811x6cnv7m3yvD/L9v7evBXlaIQSE0M="; + hash = "sha256-D0FdZxaDB+9N/7p73GF8qw0UwbXTQrKc1WOgy9UltxA="; }; outputs = [ @@ -34,14 +35,12 @@ buildPythonPackage rec { "testsout" ]; - nativeBuildInputs = [ hatchling ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ + dependencies = [ click h11 - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; passthru.optional-dependencies.standard = [ httptools @@ -57,9 +56,7 @@ buildPythonPackage rec { cp -R tests $testsout/tests ''; - pythonImportsCheck = [ - "uvicorn" - ]; + pythonImportsCheck = [ "uvicorn" ]; # check in passthru.tests.pytest to escape infinite recursion with httpx/httpcore doCheck = false; |