pythonPackages.flask: Move optional deps to passthru

This commit is contained in:
Sebastian Jordan
2023-03-03 23:56:29 +01:00
committed by Martin Weinelt
parent 4a9ddc5515
commit 3f1c8de711
@@ -28,8 +28,6 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
asgiref
python-dotenv
click click
itsdangerous itsdangerous
jinja2 jinja2
@@ -43,6 +41,10 @@ buildPythonPackage rec {
passthru.tests = { passthru.tests = {
inherit flask-limiter flask-restful flask-restx moto; inherit flask-limiter flask-restful flask-restx moto;
}; };
passthru.optional-dependencies = {
dotenv = [ python-dotenv ];
async = [ asgiref ];
};
meta = with lib; { meta = with lib; {
homepage = "https://flask.palletsprojects.com/"; homepage = "https://flask.palletsprojects.com/";