3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fastapi/default.nix

41 lines
800 B
Nix
Raw Normal View History

2019-07-26 17:15:36 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, uvicorn
, starlette
, pydantic
, python
, isPy3k
, which
}:
buildPythonPackage rec {
pname = "fastapi";
2019-10-24 07:47:30 +01:00
version = "0.42.0";
2019-07-26 17:15:36 +01:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:30 +01:00
sha256 = "48cb522c1c993e238bfe272fbb18049cbd4bf5b9d6c0d4a4fa113cc790e8196c";
2019-07-26 17:15:36 +01:00
};
propagatedBuildInputs = [
uvicorn
starlette
pydantic
];
patches = [ ./setup.py.patch ];
checkPhase = ''
${python.interpreter} -c "from fastapi import FastAPI; app = FastAPI()"
'';
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 ];
};
}