2023-03-27 19:17:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-02-29 20:09:43 +00:00
|
|
|
, pythonOlder
|
2023-03-27 19:17:25 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, aiofiles
|
|
|
|
, blinker
|
|
|
|
, click
|
2024-02-29 20:09:43 +00:00
|
|
|
, flask
|
2023-03-27 19:17:25 +00:00
|
|
|
, hypercorn
|
|
|
|
, importlib-metadata
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, markupsafe
|
|
|
|
, pydata-sphinx-theme
|
|
|
|
, python-dotenv
|
|
|
|
, typing-extensions
|
|
|
|
, werkzeug
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, hypothesis
|
|
|
|
, mock
|
|
|
|
, py
|
|
|
|
, pytest-asyncio
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest7CheckHook
|
2023-03-27 19:17:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quart";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.19.5";
|
|
|
|
pyproject = true;
|
2023-03-27 19:17:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets";
|
|
|
|
repo = "quart";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-T2+76AVvXrads7AbjNAExV0i4doQ2xIUEwekVB2JXAo=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-03-27 19:17:25 +00:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "--no-cov-on-fail " ""
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-03-27 19:17:25 +00:00
|
|
|
aiofiles
|
|
|
|
blinker
|
|
|
|
click
|
2024-02-29 20:09:43 +00:00
|
|
|
flask
|
2023-03-27 19:17:25 +00:00
|
|
|
hypercorn
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
|
|
|
markupsafe
|
|
|
|
pydata-sphinx-theme
|
|
|
|
python-dotenv
|
|
|
|
werkzeug
|
2024-02-29 20:09:43 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
importlib-metadata
|
|
|
|
typing-extensions
|
2023-03-27 19:17:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"quart"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
mock
|
|
|
|
py
|
|
|
|
pytest-asyncio
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2023-03-27 19:17:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An async Python micro framework for building web applications";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "quart";
|
2023-03-27 19:17:25 +00:00
|
|
|
homepage = "https://github.com/pallets/quart/";
|
|
|
|
changelog = "https://github.com/pallets/quart/blob/${src.rev}/CHANGES.rst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|