1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/development/python-modules/fastapi/default.nix
Daniel Wheeler 5634ef5d47 python37Packages.fastapi: 0.45.0 -> 0.49.0
- Add peewee to test environment as now required.

 - Remove pyproject.toml patching as no longer required.
2020-03-12 21:48:07 -07:00

56 lines
953 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchurl
, uvicorn
, starlette
, pydantic
, isPy3k
, pytest
, pytestcov
, pyjwt
, passlib
, aiosqlite
, peewee
}:
buildPythonPackage rec {
pname = "fastapi";
version = "0.49.0";
format = "flit";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tiangolo";
repo = "fastapi";
rev = version;
sha256 = "1dw5f2xvn0fqqsy29ypba8v3444cy7dvc7gkpmnhshky0rmfni3n";
};
propagatedBuildInputs = [
uvicorn
starlette
pydantic
];
checkInputs = [
pytest
pytestcov
pyjwt
passlib
aiosqlite
peewee
];
checkPhase = ''
pytest --ignore=tests/test_default_response_class.py
'';
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 ];
};
}