python37Packages.fastapi: 0.45.0 -> 0.49.0
- Add peewee to test environment as now required. - Remove pyproject.toml patching as no longer required.
This commit is contained in:
parent
ffebc623e9
commit
5634ef5d47
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, uvicorn
|
||||
, starlette
|
||||
, pydantic
|
||||
|
@ -10,11 +11,12 @@
|
|||
, pyjwt
|
||||
, passlib
|
||||
, aiosqlite
|
||||
, peewee
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastapi";
|
||||
version = "0.45.0";
|
||||
version = "0.49.0";
|
||||
format = "flit";
|
||||
disabled = !isPy3k;
|
||||
|
||||
|
@ -22,7 +24,7 @@ buildPythonPackage rec {
|
|||
owner = "tiangolo";
|
||||
repo = "fastapi";
|
||||
rev = version;
|
||||
sha256 = "1qwh382ny6qa3zi64micdq4j7dc64zv4rfd8g91j0digd4rhs6i1";
|
||||
sha256 = "1dw5f2xvn0fqqsy29ypba8v3444cy7dvc7gkpmnhshky0rmfni3n";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -37,16 +39,9 @@ buildPythonPackage rec {
|
|||
pyjwt
|
||||
passlib
|
||||
aiosqlite
|
||||
peewee
|
||||
];
|
||||
|
||||
# starlette pinning kept in place due to 0.12.9 being a hard
|
||||
# dependency luckily fastapi is currently the only dependent on
|
||||
# starlette. Please remove pinning when possible
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "pydantic >=0.32.2,<=0.32.2" "pydantic"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest --ignore=tests/test_default_response_class.py
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue