1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 pythonOlder,
6 hatchling,
7 flask,
8 itsdangerous,
9 wtforms,
10 email-validator,
11 pytestCheckHook,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "flask-wtf";
17 version = "1.2.2";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchPypi {
23 pname = "flask_wtf";
24 inherit version;
25 hash = "sha256-edLuHkNs9XC8y32RZTP6GHV6LxjCkKzP+rG5oLaEZms=";
26 };
27
28 build-system = [
29 hatchling
30 setuptools
31 ];
32
33 dependencies = [
34 flask
35 itsdangerous
36 wtforms
37 ];
38
39 optional-dependencies = {
40 email = [ email-validator ];
41 };
42
43 nativeCheckInputs = [ pytestCheckHook ];
44
45 pythonImportsCheck = [ "flask_wtf" ];
46
47 meta = with lib; {
48 description = "Simple integration of Flask and WTForms";
49 license = licenses.bsd3;
50 maintainers = with maintainers; [
51 mic92
52 anthonyroussel
53 ];
54 homepage = "https://github.com/pallets-eco/flask-wtf/";
55 changelog = "https://github.com/pallets-eco/flask-wtf/releases/tag/v${version}";
56 };
57}