2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 15:02:35 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-04 17:24:31 -04:00
|
|
|
, markupsafe
|
2022-01-16 11:33:51 +01:00
|
|
|
, Babel
|
|
|
|
, pytestCheckHook
|
|
|
|
, email_validator
|
2018-10-16 15:02:35 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-16 11:33:51 +01:00
|
|
|
version = "3.0.1";
|
2020-06-04 17:24:31 -04:00
|
|
|
pname = "WTForms";
|
2018-10-16 15:02:35 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-16 11:33:51 +01:00
|
|
|
sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb";
|
2018-10-16 15:02:35 -04:00
|
|
|
};
|
|
|
|
|
2022-01-16 11:33:51 +01:00
|
|
|
propagatedBuildInputs = [ markupsafe Babel ];
|
2020-06-04 17:24:31 -04:00
|
|
|
|
2022-01-16 11:33:51 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
email_validator
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "wtforms" ];
|
2018-10-16 15:02:35 -04:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-16 15:02:35 -04:00
|
|
|
description = "A flexible forms validation and rendering library for Python";
|
2020-06-04 17:24:31 -04:00
|
|
|
homepage = "https://github.com/wtforms/wtforms";
|
|
|
|
changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
|
2018-10-16 15:02:35 -04:00
|
|
|
license = licenses.bsd3;
|
2020-06-04 17:24:31 -04:00
|
|
|
maintainers = [ maintainers.bhipple ];
|
2018-10-16 15:02:35 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|