nixpkgs/pkgs/development/python-modules/fastapi/default.nix

56 lines
953 B
Nix
Raw Normal View History

2019-07-26 17:15:36 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchurl
2019-07-26 17:15:36 +01:00
, uvicorn
, starlette
, pydantic
, isPy3k
, pytest
, pytestcov
, pyjwt
, passlib
, aiosqlite
, peewee
2019-07-26 17:15:36 +01:00
}:
buildPythonPackage rec {
pname = "fastapi";
version = "0.49.0";
format = "flit";
2019-07-26 17:15:36 +01:00
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tiangolo";
repo = "fastapi";
rev = version;
sha256 = "1dw5f2xvn0fqqsy29ypba8v3444cy7dvc7gkpmnhshky0rmfni3n";
2019-07-26 17:15:36 +01:00
};
propagatedBuildInputs = [
uvicorn
starlette
pydantic
];
checkInputs = [
pytest
pytestcov
pyjwt
passlib
aiosqlite
peewee
];
2019-07-26 17:15:36 +01:00
checkPhase = ''
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 ];
};
}