python3Packages.fastapi: 0.75.1 -> 0.75.2
This commit is contained in:
parent
c6950658da
commit
655d378078
|
@ -7,6 +7,7 @@
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, databases
|
, databases
|
||||||
|
, fetchpatch
|
||||||
, flask
|
, flask
|
||||||
, httpx
|
, httpx
|
||||||
, passlib
|
, passlib
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.75.1";
|
version = "0.75.2";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -28,7 +29,7 @@ buildPythonPackage rec {
|
||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-tSZ5isMzDhDsuVNQdoYXG0IYkgCvdVdARtFXELNjTtk=";
|
hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -50,6 +51,16 @@ buildPythonPackage rec {
|
||||||
trio
|
trio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-later-starlette.patch";
|
||||||
|
# PR contains multiple commits
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch";
|
||||||
|
sha256 = "sha256-ZWaqAd/QYEYRL1hSQdXdFPgWgdmOill2GtmEn33vz2U=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace "starlette ==" "starlette >="
|
--replace "starlette ==" "starlette >="
|
||||||
|
@ -70,10 +81,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_get_custom_response"
|
"test_get_custom_response"
|
||||||
|
|
||||||
# Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
|
# Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
|
||||||
"test_websocket_invalid_data"
|
"test_websocket_invalid_data"
|
||||||
"test_websocket_no_credentials"
|
"test_websocket_no_credentials"
|
||||||
|
# TypeError: __init__() missing 1...starlette-releated
|
||||||
|
"test_head"
|
||||||
|
"test_options"
|
||||||
|
"test_trace"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
Loading…
Reference in a new issue