diff --git a/pkgs/development/python-modules/nodriver/default.nix b/pkgs/development/python-modules/nodriver/default.nix index fa728fcda1d2..8dd60efd35ce 100644 --- a/pkgs/development/python-modules/nodriver/default.nix +++ b/pkgs/development/python-modules/nodriver/default.nix @@ -18,6 +18,11 @@ buildPythonPackage rec { hash = "sha256-SsjNiLavEzwm3BV/t49asXRipZtKDaMwTjrxK75LQ0M="; }; + patches = [ + # https://github.com/ultrafunkamsterdam/nodriver/pull/36 + ./python-3.14-network-py-encoding.patch + ]; + dependencies = [ deprecated mss diff --git a/pkgs/development/python-modules/nodriver/python-3.14-network-py-encoding.patch b/pkgs/development/python-modules/nodriver/python-3.14-network-py-encoding.patch new file mode 100644 index 000000000000..7c1d18787ab8 --- /dev/null +++ b/pkgs/development/python-modules/nodriver/python-3.14-network-py-encoding.patch @@ -0,0 +1,11 @@ +--- a/nodriver/cdp/network.py ++++ b/nodriver/cdp/network.py +@@ -1362,7 +1362,7 @@ + #: Cookie expiration date as the number of seconds since the UNIX epoch. + #: The value is set to -1 if the expiry date is not set. + #: The value can be null for values that cannot be represented in +- #: JSON (±Inf). ++ #: JSON (±Inf). + expires: typing.Optional[float] = None + + #: Cookie SameSite type.