nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, asgiref 5, click 6, importlib-metadata 7, itsdangerous 8, jinja2 9, python-dotenv 10, werkzeug 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 version = "2.1.2"; 17 pname = "Flask"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-MV3tLd+KYoFWftsnOTAQ/jQGGIuvv+ZaMznVeH2J5Hc="; 22 }; 23 24 propagatedBuildInputs = [ 25 asgiref 26 python-dotenv 27 click 28 itsdangerous 29 jinja2 30 werkzeug 31 ] ++ lib.optional (pythonOlder "3.10") importlib-metadata; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 homepage = "https://flask.palletsprojects.com/"; 39 description = "The Python micro framework for building web applications"; 40 longDescription = '' 41 Flask is a lightweight WSGI web application framework. It is 42 designed to make getting started quick and easy, with the ability 43 to scale up to complex applications. It began as a simple wrapper 44 around Werkzeug and Jinja and has become one of the most popular 45 Python web application frameworks. 46 ''; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ SuperSandro2000 ]; 49 }; 50}