My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/fastapi/default.nix

41 lines
800 B

{ lib
, buildPythonPackage
, fetchPypi
, uvicorn
, starlette
, pydantic
, python
, isPy3k
, which
}:
buildPythonPackage rec {
pname = "fastapi";
version = "0.42.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "48cb522c1c993e238bfe272fbb18049cbd4bf5b9d6c0d4a4fa113cc790e8196c";
};
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 ];
};
}