2019-07-26 17:15:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-12-29 18:08:35 +00:00
|
|
|
, fetchFromGitHub
|
2020-02-28 16:36:20 +00:00
|
|
|
, fetchurl
|
2019-07-26 17:15:36 +01:00
|
|
|
, uvicorn
|
|
|
|
, starlette
|
|
|
|
, pydantic
|
|
|
|
, isPy3k
|
2019-12-29 18:08:35 +00:00
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pyjwt
|
|
|
|
, passlib
|
|
|
|
, aiosqlite
|
2020-02-28 16:36:20 +00:00
|
|
|
, peewee
|
2019-07-26 17:15:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastapi";
|
2020-02-28 16:36:20 +00:00
|
|
|
version = "0.49.0";
|
2019-12-29 18:08:35 +00:00
|
|
|
format = "flit";
|
2019-07-26 17:15:36 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-12-29 18:08:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tiangolo";
|
|
|
|
repo = "fastapi";
|
|
|
|
rev = version;
|
2020-02-28 16:36:20 +00:00
|
|
|
sha256 = "1dw5f2xvn0fqqsy29ypba8v3444cy7dvc7gkpmnhshky0rmfni3n";
|
2019-07-26 17:15:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
uvicorn
|
|
|
|
starlette
|
|
|
|
pydantic
|
|
|
|
];
|
|
|
|
|
2019-12-29 18:08:35 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pyjwt
|
|
|
|
passlib
|
|
|
|
aiosqlite
|
2020-02-28 16:36:20 +00:00
|
|
|
peewee
|
2019-12-29 18:08:35 +00:00
|
|
|
];
|
|
|
|
|
2019-07-26 17:15:36 +01:00
|
|
|
checkPhase = ''
|
2019-12-29 18:08:35 +00:00
|
|
|
pytest --ignore=tests/test_default_response_class.py
|
2019-07-26 17:15:36 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tiangolo/fastapi";
|
|
|
|
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|