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:
Daniel Wheeler 2020-02-28 11:36:20 -05:00 committed by Jon
parent ffebc623e9
commit 5634ef5d47

View file

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchurl
, uvicorn , uvicorn
, starlette , starlette
, pydantic , pydantic
@ -10,11 +11,12 @@
, pyjwt , pyjwt
, passlib , passlib
, aiosqlite , aiosqlite
, peewee
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fastapi"; pname = "fastapi";
version = "0.45.0"; version = "0.49.0";
format = "flit"; format = "flit";
disabled = !isPy3k; disabled = !isPy3k;
@ -22,7 +24,7 @@ buildPythonPackage rec {
owner = "tiangolo"; owner = "tiangolo";
repo = "fastapi"; repo = "fastapi";
rev = version; rev = version;
sha256 = "1qwh382ny6qa3zi64micdq4j7dc64zv4rfd8g91j0digd4rhs6i1"; sha256 = "1dw5f2xvn0fqqsy29ypba8v3444cy7dvc7gkpmnhshky0rmfni3n";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,16 +39,9 @@ buildPythonPackage rec {
pyjwt pyjwt
passlib passlib
aiosqlite 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 = '' checkPhase = ''
pytest --ignore=tests/test_default_response_class.py pytest --ignore=tests/test_default_response_class.py
''; '';