2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, pythonOlder
|
|
|
|
, hatchling
|
2022-06-16 17:23:12 +00:00
|
|
|
, flask
|
|
|
|
, itsdangerous
|
|
|
|
, wtforms
|
2022-06-26 10:26:21 +00:00
|
|
|
, email-validator
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, 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
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W" "ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
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;
|
2022-09-14 18:05:37 +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
|
|
|
};
|
|
|
|
}
|