From ba2e82325ec829e37d2d86cd89a1ff12a8ad7f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 10 May 2021 16:32:20 +0200 Subject: [PATCH 1/2] python3Packages.fastapi: 0.63.0 -> 0.65.0 https://github.com/tiangolo/fastapi/releases/tag/0.64.0 https://github.com/tiangolo/fastapi/releases/tag/0.65.0 --- pkgs/development/python-modules/fastapi/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index dadfc41c68bc20..0f1c7ec6bdc30e 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -17,19 +17,19 @@ buildPythonPackage rec { pname = "fastapi"; - version = "0.63.0"; + version = "0.65.0"; format = "flit"; src = fetchFromGitHub { owner = "tiangolo"; repo = "fastapi"; rev = version; - sha256 = "0l3imrcs42pqf9d6k8c1q15k5sqcnapl5zk71xl52mrxhz49lgpi"; + sha256 = "sha256-DPfijCGORF3ThZblqaYTKN0H8+wlhtdIS8lfKfJl/bY="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace "starlette ==0.13.6" "starlette" + --replace "starlette ==" "starlette >=" ''; propagatedBuildInputs = [ From 3681cf7d1282baef884436ac9c2c5cea822092c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 10 May 2021 16:35:25 +0200 Subject: [PATCH 2/2] python3Packages.json-logging: re-enable tests involving FastAPI --- pkgs/development/python-modules/json-logging/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/json-logging/default.nix b/pkgs/development/python-modules/json-logging/default.nix index 3d34cb2475abeb..1f4425a3e112a9 100644 --- a/pkgs/development/python-modules/json-logging/default.nix +++ b/pkgs/development/python-modules/json-logging/default.nix @@ -30,10 +30,8 @@ buildPythonPackage rec { ]; # - Quart is not packaged for Nixpkgs. - # - FastAPI is broken, see #112701 and tiangolo/fastapi#2335. - checkInputs = [ wheel flask /*quart*/ sanic /*fastapi*/ uvicorn requests pytestCheckHook ]; - disabledTests = [ "quart" "fastapi" ]; - disabledTestPaths = [ "tests/test_fastapi.py" ]; + checkInputs = [ wheel flask /*quart*/ sanic fastapi uvicorn requests pytestCheckHook ]; + disabledTests = [ "quart" ]; # Tests spawn servers and try to connect to them. __darwinAllowLocalNetworking = true;