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.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchPypi { 23 pname = "flask_wtf"; 24 inherit version; 25 hash = "sha256-i7Jp65u0a4fnyCM9fn3r3x+LdL+QzBeJmIwps3qXtpU="; 26 }; 27 28 nativeBuildInputs = [ 29 hatchling 30 setuptools 31 ]; 32 33 propagatedBuildInputs = [ 34 flask 35 itsdangerous 36 wtforms 37 ]; 38 39 passthru.optional-dependencies = { 40 email = [ email-validator ]; 41 }; 42 43 nativeCheckInputs = [ pytestCheckHook ]; 44 45 pytestFlagsArray = [ 46 "-W" 47 "ignore::DeprecationWarning" 48 ]; 49 50 meta = with lib; { 51 description = "Simple integration of Flask and WTForms."; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ 54 mic92 55 anthonyroussel 56 ]; 57 homepage = "https://github.com/lepture/flask-wtf/"; 58 changelog = "https://github.com/wtforms/flask-wtf/releases/tag/v${version}"; 59 }; 60}