1{ lib
2, buildPythonPackage
3, fetchPypi
4, markupsafe
5, babel
6, pytestCheckHook
7, email-validator
8}:
9
10buildPythonPackage rec {
11 version = "3.0.1";
12 pname = "wtforms";
13
14 src = fetchPypi {
15 pname = "WTForms";
16 inherit version;
17 sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb";
18 };
19
20 propagatedBuildInputs = [ markupsafe babel ];
21
22
23 checkInputs = [
24 pytestCheckHook
25 email-validator
26 ];
27
28 pythonImportsCheck = [ "wtforms" ];
29
30 meta = with lib; {
31 description = "A flexible forms validation and rendering library for Python";
32 homepage = "https://github.com/wtforms/wtforms";
33 changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
34 license = licenses.bsd3;
35 maintainers = [ maintainers.bhipple ];
36 };
37
38}