2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, asgiref
|
|
|
|
, click
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, python-dotenv
|
|
|
|
, werkzeug
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "Flask";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-4RIMIoyi9VO0cN9KX6knq2YlhGdSYGmYGz6wqRkCaH0=";
|
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-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# required for CLI subcommand autodiscovery
|
|
|
|
# see: https://github.com/pallets/flask/blob/fdac8a5404e3e3a316568107a293f134707c75bb/src/flask/cli.py#L498
|
|
|
|
setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|