Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 40 lines 788 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, uvicorn 5, starlette 6, pydantic 7, python 8, isPy3k 9, which 10}: 11 12buildPythonPackage rec { 13 pname = "fastapi"; 14 version = "0.33.0"; 15 disabled = !isPy3k; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "1mc8ljfk6xyn2cq725s8hgapp62z5mylzw9akvkhwwz3bh8m5a7f"; 20 }; 21 22 propagatedBuildInputs = [ 23 uvicorn 24 starlette 25 pydantic 26 ]; 27 28 patches = [ ./setup.py.patch ]; 29 30 checkPhase = '' 31 ${python.interpreter} -c "from fastapi import FastAPI; app = FastAPI()" 32 ''; 33 34 meta = with lib; { 35 homepage = "https://github.com/tiangolo/fastapi"; 36 description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ wd15 ]; 39 }; 40}