diff --git a/pkgs/by-name/aw/aws-gate/fix-compatibility-with-marshmallow-4.x.patch b/pkgs/by-name/aw/aws-gate/fix-compatibility-with-marshmallow-4.x.patch new file mode 100644 index 000000000000..be34c27de265 --- /dev/null +++ b/pkgs/by-name/aw/aws-gate/fix-compatibility-with-marshmallow-4.x.patch @@ -0,0 +1,28 @@ +From d6b05accc05abcd13aefd66c50e6f4414f098b71 Mon Sep 17 00:00:00 2001 +From: Moraxyc +Date: Thu, 1 Jan 2026 10:49:08 +0800 +Subject: [PATCH] fix(config.py): fix compatibility with marshmallow 4.x + +--- + aws_gate/config.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/aws_gate/config.py b/aws_gate/config.py +index bfb84bf..0a1153f 100644 +--- a/aws_gate/config.py ++++ b/aws_gate/config.py +@@ -45,9 +45,9 @@ class HostSchema(Schema): + + class GateConfigSchema(Schema): + defaults = fields.Nested( +- DefaultsSchema, required=False, missing={}, validate=validate_defaults ++ DefaultsSchema, required=False, load_default={}, validate=validate_defaults + ) +- hosts = fields.List(fields.Nested(HostSchema), required=False, missing=[]) ++ hosts = fields.List(fields.Nested(HostSchema), required=False, load_default=[]) + + # pylint: disable=unused-argument + @post_load +-- +2.51.2 + diff --git a/pkgs/by-name/aw/aws-gate/package.nix b/pkgs/by-name/aw/aws-gate/package.nix index 847c9b64c5b6..1e42ef045e52 100644 --- a/pkgs/by-name/aw/aws-gate/package.nix +++ b/pkgs/by-name/aw/aws-gate/package.nix @@ -20,6 +20,9 @@ python3Packages.buildPythonApplication rec { patches = [ ./disable-bootstrap.patch + # default and missing parameters, which were replaced by dump_default and load_default + # https://github.com/xen0l/aws-gate/pull/1770 + ./fix-compatibility-with-marshmallow-4.x.patch ]; postPatch = ''