From 92a9db2e3ee96447986b29d03f5d4dcee05ffc9f Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 13 Sep 2020 12:44:47 +0100 Subject: [PATCH] pythonPackages.httpx: fix tests test suite contained a literal timestamp which expired, fixed upstream --- pkgs/development/python-modules/httpx/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 58152ca270e..5361e047207 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , certifi , chardet , h11 @@ -31,6 +32,14 @@ buildPythonPackage rec { sha256 = "08b6k5g8car3bic90aw4ysb2zvsa5nm8qk3hk4dgamllnnxzl5br"; }; + patches = [ + (fetchpatch { + name = "fix-cookie-test-timestamp.patch"; + url = "https://github.com/encode/httpx/pull/1270.patch"; + sha256 = "1hgrynac6226sgnyzmsr1nr15rn49gbfmk4c2kx3dwkbh6vr7jpd"; + }) + ]; + propagatedBuildInputs = [ certifi chardet