From 1ecd6c966237ee45d86bac1dbb2e0915fe0b78ef Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sat, 30 Sep 2023 19:24:21 +0200 Subject: [PATCH] python311Packages.flask-wtf: 1.1.1 -> 1.2.1 https://github.com/wtforms/flask-wtf/releases/tag/v1.1.2 https://github.com/wtforms/flask-wtf/releases/tag/v1.2.0 https://github.com/wtforms/flask-wtf/releases/tag/v1.2.1 --- pkgs/applications/misc/etesync-dav/default.nix | 2 ++ .../python-modules/flask-wtf/default.nix | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/etesync-dav/default.nix b/pkgs/applications/misc/etesync-dav/default.nix index dbf22e950830..0c83c8a9b81f 100644 --- a/pkgs/applications/misc/etesync-dav/default.nix +++ b/pkgs/applications/misc/etesync-dav/default.nix @@ -30,8 +30,10 @@ let }); flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec { version = "0.15.1"; + format = "setuptools"; src = old.src.override { inherit version; + pname = "Flask-WTF"; hash = "sha256-/xdxhfiRMC3CU0N/5jCB56RqTpmsph3+CG+yPlT/8tw="; }; disabledTests = [ diff --git a/pkgs/development/python-modules/flask-wtf/default.nix b/pkgs/development/python-modules/flask-wtf/default.nix index 4954f19f91de..036b4dd5a05e 100644 --- a/pkgs/development/python-modules/flask-wtf/default.nix +++ b/pkgs/development/python-modules/flask-wtf/default.nix @@ -1,7 +1,8 @@ { lib , fetchPypi -, fetchpatch , buildPythonPackage +, pythonOlder +, hatchling , flask , itsdangerous , wtforms @@ -11,14 +12,21 @@ buildPythonPackage rec { pname = "flask-wtf"; - version = "1.1.1"; + version = "1.2.1"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; src = fetchPypi { - pname = "Flask-WTF"; + pname = "flask_wtf"; inherit version; - hash = "sha256-QcQkTprmJtY77UKuR4W5Bme4hbFTXVpAleH2MGDRKqk="; + hash = "sha256-i7Jp65u0a4fnyCM9fn3r3x+LdL+QzBeJmIwps3qXtpU="; }; + nativeBuildInputs = [ + hatchling + ]; + propagatedBuildInputs = [ flask itsdangerous @@ -38,5 +46,6 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ mic92 anthonyroussel ]; homepage = "https://github.com/lepture/flask-wtf/"; + changelog = "https://github.com/wtforms/flask-wtf/releases/tag/v${version}"; }; }