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-01-19 23:45:15 +00:00
|
|
|
, Babel
|
|
|
|
, pytestCheckHook
|
|
|
|
, email_validator
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "3.0.1";
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "WTForms";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
propagatedBuildInputs = [ markupsafe Babel ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
email_validator
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|