Skip to content

Commit

Permalink
Merge pull request #190680 from anthonyroussel/fix-flask-wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Sep 10, 2022
2 parents 4897902 + 7083952 commit e221ed4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pkgs/development/python-modules/flask-wtf/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, fetchPypi
, fetchpatch
, buildPythonPackage
, flask
, itsdangerous
Expand All @@ -18,6 +19,20 @@ buildPythonPackage rec {
sha256 = "34fe5c6fee0f69b50e30f81a3b7ea16aa1492a771fe9ad0974d164610c09a6c9";
};

patches = [
# Fix failing `test_set_default_message_language` test
#
# Caused by Flask 2.2 that throws an error when setup methods are
# mistakenly called before the first request.
#
# Will be fixed upstream with: https://github.com/wtforms/flask-wtf/pull/533
#
(fetchpatch {
url = "https://github.com/wtforms/flask-wtf/commit/36a53fadf7bc42c79a1428657531961ec30ca003.patch";
hash = "sha256-bgLwDG9Wpufm6fd/6PS83Jvvuk1Ha6XdyaWngluPs30=";
})
];

propagatedBuildInputs = [
flask
itsdangerous
Expand All @@ -35,7 +50,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Simple integration of Flask and WTForms.";
license = licenses.bsd3;
maintainers = [ maintainers.mic92 ];
maintainers = with maintainers; [ mic92 anthonyroussel ];
homepage = "https://github.com/lepture/flask-wtf/";
};
}

0 comments on commit e221ed4

Please sign in to comment.