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