mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python310Packages.quart: init at 0.18.3
An async Python micro framework for building web applications.
This commit is contained in:
parent
b33b3fa968
commit
14c9c30982
85
pkgs/development/python-modules/quart/default.nix
Normal file
85
pkgs/development/python-modules/quart/default.nix
Normal file
@ -0,0 +1,85 @@
|
||||
{ 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";
|
||||
version = "0.18.3";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pallets";
|
||||
repo = "quart";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-aQM8kEhienBG+/zQQ8C/DKiDIMF3l9rq8HSAvg7wvLM=";
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -9957,6 +9957,8 @@ self: super: with self; {
|
||||
|
||||
quantum-gateway = callPackage ../development/python-modules/quantum-gateway { };
|
||||
|
||||
quart = callPackage ../development/python-modules/quart { };
|
||||
|
||||
querystring_parser = callPackage ../development/python-modules/querystring-parser { };
|
||||
|
||||
questionary = callPackage ../development/python-modules/questionary { };
|
||||
|
Loading…
Reference in New Issue
Block a user