1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 23:32:35 +03:00
nixpkgs/pkgs/development/python-modules/flask/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.3 KiB
Nix
Raw Normal View History

2021-06-02 20:56:55 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, asgiref
, click
, importlib-metadata
2021-06-02 20:56:55 +02:00
, itsdangerous
, jinja2
, python-dotenv
, werkzeug
, pytestCheckHook
, pythonOlder
# used in passthru.tests
, flask-limiter
, flask-restful
, flask-restx
, moto
2021-06-02 20:56:55 +02:00
}:
buildPythonPackage rec {
pname = "flask";
2022-08-18 23:34:28 +02:00
version = "2.2.2";
src = fetchPypi {
pname = "Flask";
inherit version;
2022-08-18 23:34:28 +02:00
sha256 = "sha256-ZCxFDRnErUgvlnKb0qj20yVUqh4jH09rTn5SZLFsyis=";
};
2021-06-02 20:56:55 +02:00
propagatedBuildInputs = [
asgiref
python-dotenv
click
itsdangerous
jinja2
werkzeug
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
2021-06-02 20:56:55 +02:00
checkInputs = [
pytestCheckHook
];
2017-09-06 17:31:38 +02:00
passthru.tests = {
inherit flask-limiter flask-restful flask-restx moto;
};
meta = with lib; {
homepage = "https://flask.palletsprojects.com/";
2021-06-02 20:56:55 +02: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.
'';
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}