There is a new pull request by ahesford against master on the void-packages repository https://github.com/ahesford/void-packages pytest https://github.com/void-linux/void-packages/pull/31354 build-style/python3-{module,pep517}.sh: fix check for pytest Relying on `python3 -m pytest --help` to test for pytest can fail because the pytest packages's __main__ is still invoked; this can trigger import problems and falsely indicate that pytest is missing. A simpler test is to just confirm that pytest is importable. If so, the interpreter returns 0. Otherwise, an ImportError is thrown and the interpreter will return 1. A patch file from https://github.com/void-linux/void-packages/pull/31354.patch is attached