mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
ba2e82325e
https://github.com/tiangolo/fastapi/releases/tag/0.64.0 https://github.com/tiangolo/fastapi/releases/tag/0.65.0
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pydantic
|
|
, starlette
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, aiosqlite
|
|
, databases
|
|
, flask
|
|
, httpx
|
|
, passlib
|
|
, peewee
|
|
, python-jose
|
|
, sqlalchemy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastapi";
|
|
version = "0.65.0";
|
|
format = "flit";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tiangolo";
|
|
repo = "fastapi";
|
|
rev = version;
|
|
sha256 = "sha256-DPfijCGORF3ThZblqaYTKN0H8+wlhtdIS8lfKfJl/bY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "starlette ==" "starlette >="
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
starlette
|
|
pydantic
|
|
];
|
|
|
|
checkInputs = [
|
|
aiosqlite
|
|
databases
|
|
flask
|
|
httpx
|
|
passlib
|
|
peewee
|
|
python-jose
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
sqlalchemy
|
|
];
|
|
|
|
# disabled tests require orjson which requires rust nightly
|
|
pytestFlagsArray = [ "--ignore=tests/test_default_response_class.py" ];
|
|
disabledTests = [ "test_get_custom_response" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|