python311Packages.flask: 2.3.3 -> 3.0.1
https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-1
This commit is contained in:
parent
756efb587c
commit
a24d9a6a54
@ -1,18 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, asgiref
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, flit-core
|
||||
|
||||
# dependencies
|
||||
, blinker
|
||||
, click
|
||||
, flit-core
|
||||
, importlib-metadata
|
||||
, itsdangerous
|
||||
, jinja2
|
||||
, python-dotenv
|
||||
, werkzeug
|
||||
|
||||
# optional-dependencies
|
||||
, asgiref
|
||||
, python-dotenv
|
||||
|
||||
# tests
|
||||
, greenlet
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
# used in passthru.tests
|
||||
|
||||
# reverse dependencies
|
||||
, flask-limiter
|
||||
, flask-restful
|
||||
, flask-restx
|
||||
@ -21,12 +31,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask";
|
||||
version = "2.3.3";
|
||||
version = "3.0.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-CcNHqSqn/0qOfzIGeV8w2CZlS684uHPQdEzVccpgnvw=";
|
||||
hash = "sha256-ZIn1G7Nmbe9vMU4V8Z1QoYaaGa4OjJo2Qf/mbHfUJAM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -39,21 +49,31 @@ buildPythonPackage rec {
|
||||
itsdangerous
|
||||
jinja2
|
||||
werkzeug
|
||||
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
|
||||
] ++ lib.optionals (pythonOlder "3.10") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
async = [
|
||||
asgiref
|
||||
];
|
||||
dotenv = [
|
||||
python-dotenv
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
greenlet
|
||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||
|
||||
passthru.tests = {
|
||||
inherit flask-limiter flask-restful flask-restx moto;
|
||||
};
|
||||
passthru.optional-dependencies = {
|
||||
dotenv = [ python-dotenv ];
|
||||
async = [ asgiref ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://flask.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}";
|
||||
homepage = "https://flask.palletsprojects.com/";
|
||||
description = "The Python micro framework for building web applications";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user