summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authortraxys <quentin+dev@familleboyer.net>2023-11-14 23:41:17 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-23 15:14:22 +0000
commitd0f248a98255b8305af7bbdc4c1c94c643859165 (patch)
tree84fbbcd2a3ebbcc5c2012ffccedbc5c00d76b144 /pkgs/servers
parent4a2b4486d75ce1db8f7557552296b31f62c4aabc (diff)
fit-trackee: pin flask-sqlalchemy to 3.0.5
FitTrackee currently requires SQLAlchemy 1.4.49 (upstream has plans to
upgrade). The commit `e3c822682230` updated flask-sqlalchemy to 3.1.1,
and that version dropped support for pre 2.0 SQLAlchemy.

As such we pin the flask-sqlalchemy dependency to the last version
supporting the required SQLAlchemy version.

(cherry picked from commit 2be3382a1df0d813a6c313f926b5917424a7ce47)
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/geospatial/fit-trackee/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/servers/geospatial/fit-trackee/default.nix b/pkgs/servers/geospatial/fit-trackee/default.nix
index c7bc7fbc2e5b6..266747622db9a 100644
--- a/pkgs/servers/geospatial/fit-trackee/default.nix
+++ b/pkgs/servers/geospatial/fit-trackee/default.nix
@@ -21,6 +21,15 @@ let
           "test/ext/mypy"
         ];
       });
+      flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec {
+        version = "3.0.5";
+
+        src = fetchPypi {
+          pname = "flask_sqlalchemy";
+          inherit version;
+          hash = "sha256-xXZeWMoUVAG1IQbA9GF4VpJDxdolVWviwjHsxghnxbE=";
+        };
+      });
     };
   };