python3Packages.fastapi: 0.70.0 -> 0.70.1
This commit is contained in:
parent
18b5f23c02
commit
4aa95890f3
1 changed files with 22 additions and 14 deletions
|
@ -14,25 +14,23 @@
|
||||||
, python-jose
|
, python-jose
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, trio
|
, trio
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.70.0";
|
version = "0.70.1";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = "fastapi";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-mLI+w9PeewnwUMuUnXj6J2r/3shinjlwXMnhNcQlhrM=";
|
sha256 = "sha256-iwjxcAe8h38PPTTDGCxIJSB7zCS0FA0gOcKUjPpk3yg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace "starlette ==" "starlette >="
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
starlette
|
starlette
|
||||||
pydantic
|
pydantic
|
||||||
|
@ -52,16 +50,22 @@ buildPythonPackage rec {
|
||||||
trio
|
trio
|
||||||
];
|
];
|
||||||
|
|
||||||
# disabled tests require orjson which requires rust nightly
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
# ignoring deprecation warnings to avoid test failure from
|
--replace "starlette ==" "starlette >="
|
||||||
# tests/test_tutorial/test_testing/test_tutorial001.py
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--ignore=tests/test_default_response_class.py"
|
# ignoring deprecation warnings to avoid test failure from
|
||||||
|
# tests/test_tutorial/test_testing/test_tutorial001.py
|
||||||
"-W ignore::DeprecationWarning"
|
"-W ignore::DeprecationWarning"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Disabled tests require orjson which requires rust nightly
|
||||||
|
"tests/test_default_response_class.py"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_get_custom_response"
|
"test_get_custom_response"
|
||||||
|
|
||||||
|
@ -70,9 +74,13 @@ buildPythonPackage rec {
|
||||||
"test_websocket_no_credentials"
|
"test_websocket_no_credentials"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"fastapi"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Web framework for building APIs";
|
||||||
homepage = "https://github.com/tiangolo/fastapi";
|
homepage = "https://github.com/tiangolo/fastapi";
|
||||||
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ wd15 ];
|
maintainers = with maintainers; [ wd15 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue