python310Packages.wtforms: add optional-dependencies
This commit is contained in:
parent
06afd90a88
commit
8a5a0711a5
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user