python310Packages.wtforms: add optional-dependencies

This commit is contained in:
Fabian Affolter 2023-02-21 11:10:53 +01:00
parent 06afd90a88
commit 8a5a0711a5

View File

@ -21,15 +21,24 @@ buildPythonPackage rec {
hash = "sha256-azUbuxLdWK9X/+8FvHhCXQjRkU4P1o7hQUO3reAjxbw=";
};
propagatedBuildInputs = [ markupsafe babel ];
propagatedBuildInputs = [
markupsafe
babel
];
passthru.optional-dependencies = {
email = [
email-validator
];
};
nativeCheckInputs = [
pytestCheckHook
email-validator
];
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "wtforms" ];
pythonImportsCheck = [
"wtforms"
];
meta = with lib; {
description = "A flexible forms validation and rendering library for Python";