From 831a625b9542b3d26eb387c4d78732d80dae2e29 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Fri, 30 Jun 2023 12:21:53 -0700 Subject: [PATCH] python310Packages.requests-unixsocket: patch to make compatible with urllib3 2+ --- .../python-modules/requests-unixsocket/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/requests-unixsocket/default.nix b/pkgs/development/python-modules/requests-unixsocket/default.nix index 4e32c712e180..58ecce446c21 100644 --- a/pkgs/development/python-modules/requests-unixsocket/default.nix +++ b/pkgs/development/python-modules/requests-unixsocket/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , pbr , requests , pytestCheckHook @@ -17,6 +18,15 @@ buildPythonPackage rec { hash = "sha256-KDBCg+qTV9Rf/1itWxHkdwjPv1gGgXqlmyo2Mijulx4="; }; + patches = [ + # https://github.com/msabramo/requests-unixsocket/pull/69 + (fetchpatch { + name = "urllib3-2-compatibility.patch"; + url = "https://github.com/msabramo/requests-unixsocket/commit/39b9c64847a52ddc8c6d14ff414a6a7a3f6358d9.patch"; + hash = "sha256-DFtjhk33JLCu7FW6XI7uf2klNmwzvh2QNwxUb4W223Q="; + }) + ]; + nativeBuildInputs = [ pbr ];