From fd7567582546877fce5577bfa8bdeea6e78a765e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 21 Feb 2025 02:40:24 +0100 Subject: [PATCH] python313Packages.paypalhttp: fix http header case issue --- pkgs/development/python-modules/paypalhttp/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/paypalhttp/default.nix b/pkgs/development/python-modules/paypalhttp/default.nix index 3563bb7454ee..4665571bc18a 100644 --- a/pkgs/development/python-modules/paypalhttp/default.nix +++ b/pkgs/development/python-modules/paypalhttp/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, # propagates pyopenssl, @@ -25,6 +26,14 @@ buildPythonPackage rec { hash = "sha256-3ihcpYtpcejPkiyf4g4jveyNU6flQB2sv9EZ5Pd7tUc="; }; + patches = [ + (fetchpatch2 { + # fix content-type header case sensitiyivy + url = "https://github.com/paypal/paypalhttp_python/commit/72609783230663b8e34c6f0384837db7b166c8f4.patch"; + hash = "sha256-K2hO3XRrJ+Gm+rLtWRPy0E2syLS4RhNNHIA3w4xVYtY="; + }) + ]; + postPatch = '' substituteInPlace tests/http_response_test.py \ --replace-fail assertEquals assertEqual