Skip to content

Commit

Permalink
Merge pull request #214311 from gador/pgadmin-pin-flask-babel
Browse files Browse the repository at this point in the history
pgadmin: pin flask-babel to fix build failure
  • Loading branch information
NickCao authored Feb 3, 2023
2 parents 6fd0c4d + cc86457 commit 5edd519
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/tools/admin/pgadmin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, sphinx
, nixosTests
, pkgs
, fetchPypi
}:

let
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5edd519

Please sign in to comment.