Merge pull request #122457 from dotlambda/fastapi-fix

python3Packages.fastapi: fix build

authored by

Robert Schütz and committed by
GitHub
1e14061a 35d969a5

+5 -7
+3 -3
pkgs/development/python-modules/fastapi/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "fastapi"; 20 - version = "0.63.0"; 20 + version = "0.65.0"; 21 21 format = "flit"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "tiangolo"; 25 25 repo = "fastapi"; 26 26 rev = version; 27 - sha256 = "0l3imrcs42pqf9d6k8c1q15k5sqcnapl5zk71xl52mrxhz49lgpi"; 27 + sha256 = "sha256-DPfijCGORF3ThZblqaYTKN0H8+wlhtdIS8lfKfJl/bY="; 28 28 }; 29 29 30 30 postPatch = '' 31 31 substituteInPlace pyproject.toml \ 32 - --replace "starlette ==0.13.6" "starlette" 32 + --replace "starlette ==" "starlette >=" 33 33 ''; 34 34 35 35 propagatedBuildInputs = [
+2 -4
pkgs/development/python-modules/json-logging/default.nix
··· 30 30 ]; 31 31 32 32 # - Quart is not packaged for Nixpkgs. 33 - # - FastAPI is broken, see #112701 and tiangolo/fastapi#2335. 34 - checkInputs = [ wheel flask /*quart*/ sanic /*fastapi*/ uvicorn requests pytestCheckHook ]; 35 - disabledTests = [ "quart" "fastapi" ]; 36 - disabledTestPaths = [ "tests/test_fastapi.py" ]; 33 + checkInputs = [ wheel flask /*quart*/ sanic fastapi uvicorn requests pytestCheckHook ]; 34 + disabledTests = [ "quart" ]; 37 35 # Tests spawn servers and try to connect to them. 38 36 __darwinAllowLocalNetworking = true; 39 37