depot/third_party/nixpkgs/pkgs/development/python-modules/flask/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

51 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, asgiref
, click
, importlib-metadata
, itsdangerous
, jinja2
, python-dotenv
, werkzeug
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "flask";
version = "2.1.3";
src = fetchPypi {
pname = "Flask";
inherit version;
sha256 = "sha256-FZcuUBffBXXD1sCQuhaLbbkCWeYgrI1+qBOjlrrVtss=";
};
propagatedBuildInputs = [
asgiref
python-dotenv
click
itsdangerous
jinja2
werkzeug
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://flask.palletsprojects.com/";
description = "The Python micro framework for building web applications";
longDescription = ''
Flask is a lightweight WSGI web application framework. It is
designed to make getting started quick and easy, with the ability
to scale up to complex applications. It began as a simple wrapper
around Werkzeug and Jinja and has become one of the most popular
Python web application frameworks.
'';
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}