Merge pull request #122457 from dotlambda/fastapi-fix
python3Packages.fastapi: fix build
This commit is contained in:
commit
1e14061a82
@ -17,19 +17,19 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.63.0";
|
version = "0.65.0";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = "fastapi";
|
repo = "fastapi";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0l3imrcs42pqf9d6k8c1q15k5sqcnapl5zk71xl52mrxhz49lgpi";
|
sha256 = "sha256-DPfijCGORF3ThZblqaYTKN0H8+wlhtdIS8lfKfJl/bY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace "starlette ==0.13.6" "starlette"
|
--replace "starlette ==" "starlette >="
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -30,10 +30,8 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# - Quart is not packaged for Nixpkgs.
|
# - Quart is not packaged for Nixpkgs.
|
||||||
# - FastAPI is broken, see #112701 and tiangolo/fastapi#2335.
|
checkInputs = [ wheel flask /*quart*/ sanic fastapi uvicorn requests pytestCheckHook ];
|
||||||
checkInputs = [ wheel flask /*quart*/ sanic /*fastapi*/ uvicorn requests pytestCheckHook ];
|
disabledTests = [ "quart" ];
|
||||||
disabledTests = [ "quart" "fastapi" ];
|
|
||||||
disabledTestPaths = [ "tests/test_fastapi.py" ];
|
|
||||||
# Tests spawn servers and try to connect to them.
|
# Tests spawn servers and try to connect to them.
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user