summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-06-05 22:23:08 +0200
committerJonathan Ringer <jonringer117@gmail.com>2022-06-06 11:46:30 -0700
commit39e1366decb154d1eb8ce0c7e8f6634090da334d (patch)
tree92525003ed612b504ab056490f70e1bd0cafa981
parent2600e7d5deeeb1c528a99db8254857762cbe78e9 (diff)
python3Packages.fastapi: 0.75.2 -> 0.78.0
https://github.com/tiangolo/fastapi/releases/tag/0.78.0 https://github.com/tiangolo/fastapi/releases/tag/0.77.1 https://github.com/tiangolo/fastapi/releases/tag/0.77.0 https://github.com/tiangolo/fastapi/releases/tag/0.76.0
-rw-r--r--pkgs/development/python-modules/fastapi/default.nix25
1 files changed, 7 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix
index 3d418d75333f..5366745a6f0a 100644
--- a/pkgs/development/python-modules/fastapi/default.nix
+++ b/pkgs/development/python-modules/fastapi/default.nix
@@ -7,7 +7,6 @@
, pytest-asyncio
, aiosqlite
, databases
-, fetchpatch
, flask
, httpx
, passlib
@@ -20,7 +19,7 @@
buildPythonPackage rec {
pname = "fastapi";
- version = "0.75.2";
+ version = "0.78.0";
format = "flit";
disabled = pythonOlder "3.6";
@@ -29,9 +28,14 @@ buildPythonPackage rec {
owner = "tiangolo";
repo = pname;
rev = version;
- hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo=";
+ hash = "sha256-4JS0VLVg67O7VdcDw2k2u+98kiCdCHvCAEGHYGWEIOA=";
};
+ postPatch = ''
+ substituteInPlace pyproject.toml \
+ --replace "starlette==" "starlette>="
+ '';
+
propagatedBuildInputs = [
starlette
pydantic
@@ -51,21 +55,6 @@ buildPythonPackage rec {
trio
] ++ passlib.optional-dependencies.bcrypt;
- 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 = ''
- substituteInPlace pyproject.toml \
- --replace "starlette ==" "starlette >="
- '';
-
pytestFlagsArray = [
# ignoring deprecation warnings to avoid test failure from
# tests/test_tutorial/test_testing/test_tutorial001.py