2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-18 07:06:33 +00:00
|
|
|
, markupsafe
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-01-19 23:45:15 +00:00
|
|
|
, pytestCheckHook
|
2022-06-26 10:26:21 +00:00
|
|
|
, email-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "3.0.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "wtforms";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "WTForms";
|
|
|
|
inherit version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [ markupsafe babel ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-06-26 10:26:21 +00:00
|
|
|
email-validator
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "wtforms" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A flexible forms validation and rendering library for Python";
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://github.com/wtforms/wtforms";
|
|
|
|
changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2020-06-18 07:06:33 +00:00
|
|
|
maintainers = [ maintainers.bhipple ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|