at 25.11-pre 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 flit-core, 9 10 # propagates 11 aiofiles, 12 blinker, 13 click, 14 flask, 15 hypercorn, 16 importlib-metadata, 17 itsdangerous, 18 jinja2, 19 markupsafe, 20 pydata-sphinx-theme, 21 python-dotenv, 22 typing-extensions, 23 werkzeug, 24 25 # tests 26 hypothesis, 27 mock, 28 py, 29 pytest-asyncio, 30 pytest-cov-stub, 31 pytestCheckHook, 32}: 33 34buildPythonPackage rec { 35 pname = "quart"; 36 version = "0.20.0"; 37 pyproject = true; 38 39 src = fetchFromGitHub { 40 owner = "pallets"; 41 repo = "quart"; 42 tag = version; 43 hash = "sha256-NApev3nRBS4QDMGq8++rSmK5YgeljkaVAsdezsTbZr4="; 44 }; 45 46 build-system = [ flit-core ]; 47 48 dependencies = 49 [ 50 aiofiles 51 blinker 52 click 53 flask 54 hypercorn 55 itsdangerous 56 jinja2 57 markupsafe 58 pydata-sphinx-theme 59 python-dotenv 60 werkzeug 61 ] 62 ++ lib.optionals (pythonOlder "3.10") [ 63 importlib-metadata 64 typing-extensions 65 ]; 66 67 pythonImportsCheck = [ "quart" ]; 68 69 nativeCheckInputs = [ 70 hypothesis 71 mock 72 py 73 pytest-asyncio 74 pytest-cov-stub 75 pytestCheckHook 76 ]; 77 78 meta = with lib; { 79 description = "Async Python micro framework for building web applications"; 80 mainProgram = "quart"; 81 homepage = "https://github.com/pallets/quart/"; 82 changelog = "https://github.com/pallets/quart/blob/${src.tag}/CHANGES.rst"; 83 license = licenses.mit; 84 maintainers = with maintainers; [ hexa ]; 85 }; 86}