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
|
2022-09-09 14:08:57 +00:00
|
|
|
# used in passthru.tests
|
|
|
|
, flask-limiter
|
|
|
|
, flask-restful
|
|
|
|
, flask-restx
|
|
|
|
, moto
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "flask";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "Flask";
|
|
|
|
inherit version;
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-ZCxFDRnErUgvlnKb0qj20yVUqh4jH09rTn5SZLFsyis=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit flask-limiter flask-restful flask-restx moto;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|