mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
pythonPackages.fastapi: 0.55.1 -> 0.63.0
This commit is contained in:
parent
6126994349
commit
2365b3c2cd
@ -1,61 +1,58 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, uvicorn
|
|
||||||
, starlette
|
|
||||||
, pydantic
|
, pydantic
|
||||||
, isPy3k
|
, starlette
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytestcov
|
, pytest-asyncio
|
||||||
, pyjwt
|
|
||||||
, passlib
|
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, peewee
|
, databases
|
||||||
, flask
|
, flask
|
||||||
|
, httpx
|
||||||
|
, passlib
|
||||||
|
, peewee
|
||||||
|
, python-jose
|
||||||
|
, sqlalchemy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.55.1";
|
version = "0.63.0";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
disabled = !isPy3k;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = "fastapi";
|
repo = "fastapi";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1515nhwari48v0angyl5z3cfpvwn4al2nvqh0cjd9xgxzvm310s8";
|
sha256 = "0l3imrcs42pqf9d6k8c1q15k5sqcnapl5zk71xl52mrxhz49lgpi";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace "starlette ==0.13.2" "starlette"
|
--replace "starlette ==0.13.6" "starlette"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
uvicorn
|
|
||||||
starlette
|
starlette
|
||||||
pydantic
|
pydantic
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
|
||||||
pytestcov
|
|
||||||
pyjwt
|
|
||||||
passlib
|
|
||||||
aiosqlite
|
aiosqlite
|
||||||
peewee
|
databases
|
||||||
flask
|
flask
|
||||||
|
httpx
|
||||||
|
passlib
|
||||||
|
peewee
|
||||||
|
python-jose
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-asyncio
|
||||||
|
sqlalchemy
|
||||||
];
|
];
|
||||||
|
|
||||||
# test_default_response_class.py: requires orjson, which requires rust toolchain
|
# disabled tests require orjson which requires rust nightly
|
||||||
# test_custom_response/test_tutorial001b.py: requires orjson
|
pytestFlagsArray = [ "--ignore=tests/test_default_response_class.py" ];
|
||||||
# tests/test_tutorial/test_sql_databases/test_testing_databases.py: just broken, don't know why
|
disabledTests = [ "test_get_custom_response" ];
|
||||||
checkPhase = ''
|
|
||||||
pytest --ignore=tests/test_default_response_class.py \
|
|
||||||
--ignore=tests/test_tutorial/test_custom_response/test_tutorial001b.py \
|
|
||||||
--ignore=tests/test_tutorial/test_sql_databases/test_testing_databases.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/tiangolo/fastapi";
|
homepage = "https://github.com/tiangolo/fastapi";
|
||||||
|
Loading…
Reference in New Issue
Block a user