From d4114c7cf814840f921c4450bb429fb1c9bc29f7 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 19:31:33 +0700 Subject: [PATCH] python3Packages.nodriver: fix non-utf-8 source byte for python 3.14 --- pkgs/development/python-modules/nodriver/default.nix | 5 +++++ .../nodriver/python-3.14-network-py-encoding.patch | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/python-modules/nodriver/python-3.14-network-py-encoding.patch 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.