2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, asgiref
|
|
|
|
, click
|
2022-04-27 09:35:20 +00:00
|
|
|
, importlib-metadata
|
2021-06-28 23:13:55 +00:00
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, python-dotenv
|
|
|
|
, werkzeug
|
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "Flask";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-MV3tLd+KYoFWftsnOTAQ/jQGGIuvv+ZaMznVeH2J5Hc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asgiref
|
|
|
|
python-dotenv
|
|
|
|
click
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
|
|
|
werkzeug
|
2022-04-27 09:35:20 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://flask.palletsprojects.com/";
|
2021-06-28 23:13:55 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|