about summary refs log tree commit diff
path: root/pkgs/tools/admin
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-02-03 19:12:10 +0800
committerGitHub <noreply@github.com>2023-02-03 19:12:10 +0800
commit5edd519b14d6b49318cde6ef2a66d85bd5ad1b96 (patch)
treeda83d24014daed8103164f41094ae62c1b4602f3 /pkgs/tools/admin
parent6fd0c4dbe480683ca2256f66ba330ae2261d08a2 (diff)
parentcc86457eca47411a373547f3f454eec9f14bf0af (diff)
Merge pull request #214311 from gador/pgadmin-pin-flask-babel
pgadmin: pin flask-babel to fix build failure
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r--pkgs/tools/admin/pgadmin/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/admin/pgadmin/default.nix b/pkgs/tools/admin/pgadmin/default.nix
index 0d0b63711d2cf..b883071010178 100644
--- a/pkgs/tools/admin/pgadmin/default.nix
+++ b/pkgs/tools/admin/pgadmin/default.nix
@@ -6,6 +6,7 @@
 , sphinx
 , nixosTests
 , pkgs
+, fetchPypi
 }:
 
 let
@@ -74,6 +75,17 @@ let
   # keep the scope, as it is used throughout the derivation and tests
   # this also makes potential future overrides easier
   pythonPackages = python3.pkgs.overrideScope (final: prev: rec {
+    # flask-security-too 4.1.5 is incompatible with flask-babel 3.x
+    flask-babel = prev.flask-babel.overridePythonAttrs (oldAttrs: rec {
+      version = "2.0.0";
+      src = fetchPypi {
+        inherit pname version;
+        sha256 = "f9faf45cdb2e1a32ea2ec14403587d4295108f35017a7821a2b1acb8cfd9257d";
+      };
+      nativeBuildInputs = [ ];
+      format = "setuptools";
+      outputs = [ "out" ];
+    });
     # flask 2.2 is incompatible with pgadmin 6.18
     # https://redmine.postgresql.org/issues/7651
     flask = prev.flask.overridePythonAttrs (oldAttrs: rec {