summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2020-06-25 12:00:00 +0000
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2020-07-06 18:35:34 +0200
commitbcafd845c67873f1c122d87c2d14a3ec6130ed2b (patch)
tree0b7893fdf827f39d03736154b73768b8478516f1
parent4b819d443c3a160aa2fe1bafad120045c7ad0c38 (diff)
python3Packages.ihatemoney: pin wtforms to 2.2.1
-rw-r--r--pkgs/development/python-modules/ihatemoney/default.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/ihatemoney/default.nix b/pkgs/development/python-modules/ihatemoney/default.nix
index 68a8b85a4ed1..38d762ec3607 100644
--- a/pkgs/development/python-modules/ihatemoney/default.nix
+++ b/pkgs/development/python-modules/ihatemoney/default.nix
@@ -1,4 +1,4 @@
-{ buildPythonPackage, lib, fetchFromGitHub, isPy27, nixosTests, fetchpatch
+{ buildPythonPackage, lib, fetchFromGitHub, isPy27, nixosTests, fetchpatch, fetchPypi
, alembic
, aniso8601
, Babel
@@ -32,6 +32,21 @@
, flask_testing
}:
+# ihatemoney is not really a library. It will only ever be imported
+# by the interpreter of uwsgi. So overrides for its depencies are fine.
+let
+ # https://github.com/spiral-project/ihatemoney/issues/567
+ pinned_wtforms = wtforms.overridePythonAttrs (old: rec {
+ pname = "WTForms";
+ version = "2.2.1";
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0q9vkcq6jnnn618h27lx9sas6s9qlg2mv8ja6dn0hy38gwzarnqc";
+ };
+ });
+ pinned_flask_wtf = flask_wtf.override { wtforms = pinned_wtforms; };
+in
+
buildPythonPackage rec {
pname = "ihatemoney";
version = "4.2";
@@ -75,7 +90,7 @@ buildPythonPackage rec {
flask-restful
flask_script
flask_sqlalchemy
- flask_wtf
+ pinned_flask_wtf
idna
itsdangerous
jinja2
@@ -87,7 +102,7 @@ buildPythonPackage rec {
sqlalchemy
sqlalchemy-continuum
werkzeug
- wtforms
+ pinned_wtforms
psycopg2
debts
];