2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
hatchling,
|
|
|
|
flask,
|
|
|
|
itsdangerous,
|
|
|
|
wtforms,
|
|
|
|
email-validator,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "flask-wtf";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.2.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "flask_wtf";
|
2022-06-16 17:23:12 +00:00
|
|
|
inherit version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-i7Jp65u0a4fnyCM9fn3r3x+LdL+QzBeJmIwps3qXtpU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2023-10-19 13:55:26 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
itsdangerous
|
|
|
|
wtforms
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2022-06-26 10:26:21 +00:00
|
|
|
email = [ email-validator ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestFlagsArray = [
|
2024-06-05 15:53:02 +00:00
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple integration of Flask and WTForms.";
|
|
|
|
license = licenses.bsd3;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
mic92
|
|
|
|
anthonyroussel
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lepture/flask-wtf/";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/wtforms/flask-wtf/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|