python3Packages.flask-jwt-extended: set up optional-dependencies

This commit is contained in:
Martin Weinelt 2022-10-05 01:44:20 +02:00 committed by Martin Weinelt
parent b4c307de89
commit d59663577d

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, flask
, pyjwt
, pytestCheckHook
@ -29,9 +30,14 @@ buildPythonPackage rec {
werkzeug
];
passthru.optional-dependencies.asymmetric_crypto = [
cryptography
];
checkInputs = [
pytestCheckHook
];
]
++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"flask_jwt_extended"