2023-03-27 19:17:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, aiofiles
|
|
|
|
, blinker
|
|
|
|
, click
|
|
|
|
, hypercorn
|
|
|
|
, importlib-metadata
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, markupsafe
|
|
|
|
, pydata-sphinx-theme
|
|
|
|
, python-dotenv
|
|
|
|
, typing-extensions
|
|
|
|
, werkzeug
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, hypothesis
|
|
|
|
, mock
|
|
|
|
, py
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quart";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.18.4";
|
2023-03-27 19:17:25 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets";
|
|
|
|
repo = "quart";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-iT/pePUtH1hwNIOG8Y/YbqCVseNXVOKC0nrXfB2RTlQ=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "--no-cov-on-fail " ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
blinker
|
|
|
|
click
|
|
|
|
hypercorn
|
|
|
|
importlib-metadata
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
|
|
|
markupsafe
|
|
|
|
pydata-sphinx-theme
|
|
|
|
python-dotenv
|
|
|
|
typing-extensions
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"quart"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
mock
|
|
|
|
py
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# remove after 0.18.4
|
|
|
|
"tests/test_signals.py"
|
|
|
|
];
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An async Python micro framework for building web applications";
|
|
|
|
homepage = "https://github.com/pallets/quart/";
|
|
|
|
changelog = "https://github.com/pallets/quart/blob/${src.rev}/CHANGES.rst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|