Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / quart / default.nix
blob6cf51d6920ffa23ad21f27055e0241f7c87c7e2c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # build-system
6 , poetry-core
8 # propagates
9 , aiofiles
10 , blinker
11 , click
12 , hypercorn
13 , importlib-metadata
14 , itsdangerous
15 , jinja2
16 , markupsafe
17 , pydata-sphinx-theme
18 , python-dotenv
19 , typing-extensions
20 , werkzeug
22 # tests
23 , hypothesis
24 , mock
25 , py
26 , pytest-asyncio
27 , pytestCheckHook
30 buildPythonPackage rec {
31   pname = "quart";
32   version = "0.18.4";
33   format = "pyproject";
35   src = fetchFromGitHub {
36     owner = "pallets";
37     repo = "quart";
38     rev = "refs/tags/${version}";
39     hash = "sha256-iT/pePUtH1hwNIOG8Y/YbqCVseNXVOKC0nrXfB2RTlQ=";
40   };
42   nativeBuildInputs = [
43     poetry-core
44   ];
46   postPatch = ''
47     substituteInPlace pyproject.toml \
48       --replace "--no-cov-on-fail " ""
49   '';
51   propagatedBuildInputs = [
52     aiofiles
53     blinker
54     click
55     hypercorn
56     importlib-metadata
57     itsdangerous
58     jinja2
59     markupsafe
60     pydata-sphinx-theme
61     python-dotenv
62     typing-extensions
63     werkzeug
64   ];
66   pythonImportsCheck = [
67     "quart"
68   ];
70   nativeCheckInputs = [
71     hypothesis
72     mock
73     py
74     pytest-asyncio
75     pytestCheckHook
76   ];
78   disabledTestPaths = [
79     # remove after 0.18.4
80     "tests/test_signals.py"
81   ];
83   meta = with lib; {
84     description = "An async Python micro framework for building web applications";
85     homepage = "https://github.com/pallets/quart/";
86     changelog = "https://github.com/pallets/quart/blob/${src.rev}/CHANGES.rst";
87     license = licenses.mit;
88     maintainers = with maintainers; [ hexa ];
89   };