From 14c9c309823b248aa352d92ed519823c01a1d4de Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 9 Mar 2023 00:31:39 +0100 Subject: [PATCH] python310Packages.quart: init at 0.18.3 An async Python micro framework for building web applications. --- .../python-modules/quart/default.nix | 85 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 87 insertions(+) create mode 100644 pkgs/development/python-modules/quart/default.nix diff --git a/pkgs/development/python-modules/quart/default.nix b/pkgs/development/python-modules/quart/default.nix new file mode 100644 index 000000000000..a3212e3efc2c --- /dev/null +++ b/pkgs/development/python-modules/quart/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e7f2e055eed..e2599ae64dc9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };