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