From 56bddbdd28b95f6e72aa92c1490ce234ffd71d4b Mon Sep 17 00:00:00 2001 From: Willy Hille Date: Fri, 8 May 2026 10:21:23 +0200 Subject: [PATCH] python3Packages.apipkg: support pytest 9 (fix build) upstream fix is merged but unreleased. patch would not apply cleanly, so pull this single-line diff in --- pkgs/development/python-modules/apipkg/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index be010b2011cd..e00aa158a551 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -19,6 +19,12 @@ buildPythonPackage rec { hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs="; }; + # support pytest 9: https://github.com/pytest-dev/apipkg/pull/58 + postPatch = '' + substituteInPlace conftest.py \ + --replace-fail 'def pytest_report_header(startdir):' 'def pytest_report_header():' + ''; + build-system = [ hatch-vcs hatchling