python3Packages.apipkg: support pytest 9 (fix build) (#517989)

This commit is contained in:
Sandro
2026-05-08 14:46:16 +00:00
committed by GitHub
@@ -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