From fc41b1abe251ec00151bb6301b5390e8e6b62f77 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 15:33:35 +0200 Subject: [PATCH] jrnl: patch for to support pytest_bdd 7.1.2 and later --- pkgs/applications/misc/jrnl/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/misc/jrnl/default.nix b/pkgs/applications/misc/jrnl/default.nix index 5f356bb6f129..e1ec1d80782f 100644 --- a/pkgs/applications/misc/jrnl/default.nix +++ b/pkgs/applications/misc/jrnl/default.nix @@ -17,6 +17,12 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-DtujXSDJWnOrHjVgJEJNKJMhSrNBHlR2hvHeHLSIF2o="; }; + postPatch = '' + # Support pytest_bdd 7.1.2 and later, https://github.com/jrnl-org/jrnl/pull/1878 + substituteInPlace tests/lib/when_steps.py \ + --replace-fail "from pytest_bdd.steps import inject_fixture" "from pytest_bdd.compat import inject_fixture" + ''; + build-system = with python3.pkgs; [ poetry-core ];