mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
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
This commit is contained in:
parent
2600e7d5de
commit
39e1366dec
@ -7,7 +7,6 @@
|
|||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, databases
|
, databases
|
||||||
, fetchpatch
|
|
||||||
, flask
|
, flask
|
||||||
, httpx
|
, httpx
|
||||||
, passlib
|
, passlib
|
||||||
@ -20,7 +19,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.75.2";
|
version = "0.78.0";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
@ -29,9 +28,14 @@ buildPythonPackage rec {
|
|||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo=";
|
hash = "sha256-4JS0VLVg67O7VdcDw2k2u+98kiCdCHvCAEGHYGWEIOA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "starlette==" "starlette>="
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
starlette
|
starlette
|
||||||
pydantic
|
pydantic
|
||||||
@ -51,21 +55,6 @@ buildPythonPackage rec {
|
|||||||
trio
|
trio
|
||||||
] ++ passlib.optional-dependencies.bcrypt;
|
] ++ 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 = [
|
pytestFlagsArray = [
|
||||||
# ignoring deprecation warnings to avoid test failure from
|
# ignoring deprecation warnings to avoid test failure from
|
||||||
# tests/test_tutorial/test_testing/test_tutorial001.py
|
# tests/test_tutorial/test_testing/test_tutorial001.py
|
||||||
|
Loading…
Reference in New Issue
Block a user