Commit 6c88874f authored by Florian Brandes's avatar Florian Brandes
Browse files

octoprint: fix flask compatibility

parent 0a1051cb
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, callPackage
, lib
, fetchFromGitHub
, fetchPypi
, python3
, substituteAll
, nix-update-script
@@ -16,6 +17,30 @@ let
    self = py;
    packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) (
      [
        (
          # Due to flask > 2.3 the login will not work
          self: super: {
            werkzeug = super.werkzeug.overridePythonAttrs (oldAttrs: rec {
              version = "2.2.3";
              format = "setuptools";
              src = fetchPypi {
                pname = "Werkzeug";
                inherit version;
                hash = "sha256-LhzMlBfU2jWLnebxdOOsCUOR6h1PvvLWZ4ZdgZ39Cv4=";
              };
            });
            flask = super.flask.overridePythonAttrs (oldAttrs: rec {
              version = "2.2.5";
              format = "setuptools";
              src = fetchPypi {
                pname = "Flask";
                inherit version;
                hash = "sha256-7e6bCn/yZiG9WowQ/0hK4oc3okENmbC7mmhQx/uXeqA=";
              };
            });
          }
        )

        # Built-in dependency
        (
          self: super: {