From 8272db154d3b2738ddb216896f4fb733220da2dc Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 30 Oct 2023 12:31:08 +0100 Subject: [PATCH] isso: fix tests Due to some dependency bump, isso ceased to build its tests for a deprecated API usage. A PR has been sent upstream, see in the diff and it is applied via substitution here. --- pkgs/servers/isso/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/isso/default.nix b/pkgs/servers/isso/default.nix index 00432ab5fc6f..735db1f0b435 100644 --- a/pkgs/servers/isso/default.nix +++ b/pkgs/servers/isso/default.nix @@ -23,6 +23,12 @@ buildPythonApplication rec { "doc" ]; + postPatch = '' + # Remove when https://github.com/posativ/isso/pull/973 is available. + substituteInPlace isso/tests/test_comments.py \ + --replace "self.client.delete_cookie('localhost.local', '1')" "self.client.delete_cookie(key='1', domain='localhost')" + ''; + propagatedBuildInputs = [ itsdangerous jinja2